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 --watch flag to run your tests in watch mode.

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.

Running tests in watch mode in
Bun


See Docs > Test Runner for complete documentation on the test runner.

Was this page helpful?

Suggest editsRaise issue

[

Run your tests with the Bun test runner

Previous

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

Migrate from Jest to Bun's test runner

Next

](../migrate-from-jest/index.md)

Running tests in watch mode in
Bun