Run mocha auto-test on file save (change)

Mocha runner triggers auto-test not when file is saved but right after any changes is added to file but not saved yet (any key in editor may be pressed and tests will be started). Is it possible somehow  to make auto-test start only when files is really SAVED and CHANGED?


Please read comments in In short, the IDE cares itself about files saving, and tests are triggered automatically on file changing.


I understand what is going on, but IDE behaviour in this case quite strange ->  I just add an empty likn in the editor (i'm not savfing the file) and IDE saves it for me and runs the tests, who needs such scenario? I think it should be fixed.


Please sign in to leave a comment.