bun test --watch

Category: Node.js & npm/yarn

bun test --watch

Run bun tests and rerun on changes

Runs the test suite once, then watches the files and reruns the affected tests on every save. The watch loop keeps results current while you edit, replacing the test-watch dance of other runners. Stop it with Ctrl+C.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.