mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
25 lines
599 B
Plaintext
25 lines
599 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
|
|
```
|
|
|
|
---
|
|
|
|
This will restart the running Bun process whenever a file change is detected. It's fast. In this example, the editor is configured to save the file on every keystroke.
|
|
|
|
<Frame>
|
|

|
|
</Frame>
|
|
|
|
---
|
|
|
|
See [Docs > Test Runner](/test) for complete documentation on the test runner.
|