rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

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).

terminal

bun test --timeout 3000 # 3 seconds

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

Was this page helpful?

Suggest editsRaise issue

[

Mark a test as a "todo" with the Bun test runner

Previous

](../todo-tests/index.md)[

Bail early with the Bun test runner

Next

](../bail/index.md)