npm exec -- jest --watch

Category: Node.js & npm/yarn

npm exec -- jest --watch

Run a locally installed binary (jest) with npm exec — preferred over npx for scripts

Runs a locally installed binary (jest) using npm's exec. Preferred over npx in package.json scripts because it always uses the local version.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.