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