Skip to main content
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.
I