Bun Set a per-test timeout with the Bun test runner

Set a per-test timeout with the Bun test runner

jarle Updated

File contents

Set a per-test timeout with the Bun test runner

Use the --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

See Docs > Test runner for complete documentation of bun test.

jarle/bun-skills/tree/main/skills/bun-guides-test-timeout commit aa1a067b45

Frequently asked questions

npx skillmds@latest add jarle/bun-set-a-per-test-timeout-with-the-bun-test-runner