25 lines
520 B
Plaintext
25 lines
520 B
Plaintext
---
|
|
title: Run tests in watch mode with Bun
|
|
sidebarTitle: Watch mode
|
|
mode: center
|
|
---
|
|
|
|
Use the `--watch` flag to run your tests in watch mode.
|
|
|
|
```sh terminal icon="terminal"
|
|
bun test --watch
|
|
```
|
|
|
|
---
|
|
|
|
Watch mode restarts the running Bun process whenever a file changes. It's fast. In this example, the editor saves the file on every keystroke.
|
|
|
|
<Frame>
|
|

|
|
</Frame>
|
|
|
|
---
|
|
|
|
See [`bun test`](/test).
|