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.