6.3 Watch and Auto Restart Tests

nodemon --exec 'npm test'
--exec indicates that the command is not necessarily a node.js one.

Creating a new script that does exactly the above command

"scripts": {
"test": "mocha **/*.test.js",
"test-watch": "nodemon --exec \"npm test\""
},

To run this, npm run test-watch