August 2017
Beginner
374 pages
10h 41m
English
We can add another script, test:watch, which will run the tests every time we change and save a file.
Edit package.json and add a new test:watch script:
"scripts": { ...other scripts..., "test:watch": "npm test -- --watch"}
Now, we can execute the following command:
npm run test:watch
This will run all tests and re-run them every time we save a file:

Read now
Unlock full access