npm test -- --watch

Category: Node.js & npm/yarn

npm test -- --watch

Run tests and pass --watch to the test runner (e.g., Jest) for continuous re-runs

Runs tests and forwards '--watch' to the test runner (like Jest) which then re-runs tests automatically as you edit files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.