blob: 394c4e7b6b8204b5d07e5eadf1f907def210baad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
name: 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).
```sh
$ bun test --timeout 3000 # 3 seconds
```
---
See [Docs > Test runner](/docs/cli/test) for complete documentation of `bun test`.
|