ls src/*.js | entr -r npm test

Category: Web App Development

ls src/*.js | entr -r npm test

Run tests automatically when files change

Watches every js file in src and reruns npm test whenever one changes, with -r restarting the process each time. entr is a minimal file-watcher that runs a command on stdin changes. Press Ctrl+D to stop watching.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.