mocha-watch
better watch for mocha.
Automatically detects all dependencies of your tests and reruns them on change.
Uses require.cache
.
Install
npm install -g mocha-watch
Usage
mocha-watch # drop-in replacement for mocha --watch
Exclude a required file from watching
after(() =>
delete require.cache["full/path/to/file"]
)
## License
Copyright (c) 2017 Paul Pflugradt
Licensed under the MIT license.