--timeout flag to set a timeout for each test in milliseconds. If any test exceeds this timeout, it will be marked as failed.
The default timeout is 5000 (5 seconds).
terminal
See Docs > Test runner for complete documentation of
bun test.--timeout flag to set a timeout for each test in milliseconds. If any test exceeds this timeout, it will be marked as failed.
The default timeout is 5000 (5 seconds).
bun test --timeout 3000 # 3 seconds
bun test.Was this page helpful?