Use the --timeout flag to set a timeout for each test in milliseconds. Bun marks a test that exceeds this timeout as failed.
The default timeout is 5000 (5 seconds).
bun test --timeout 3000 # 3 seconds
See bun test.
Runtime docs · Guides · Test Runner
Use the --timeout flag to set a timeout for each test in milliseconds. Bun marks a test that exceeds this timeout as failed.
The default timeout is 5000 (5 seconds).
bun test --timeout 3000 # 3 seconds
See bun test.