Bun Run tests in watch mode with Bun

Run tests in watch mode with Bun

jarle Updated

File contents

Run tests in watch mode with Bun

Use the --watch flag to run your tests in watch mode.

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.


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

jarle/bun-skills/tree/main/skills/bun-guides-test-watch-mode commit 608139ab6b

Frequently asked questions

npx skillmds@latest add jarle/bun-run-tests-in-watch-mode-with-bun