I currently use nodemon or supervisor for automatic server restarting and automatic test cases execution. But currently my requirement is to run specific test cases
when certain files
are changed. For example if app\models\user.js
is modified, I want test\model\user-test.js
to be executed.
I order to achieve that I need to identify which are the files that are modified. How can I achieve that using nodemon
or supervisor
?