☕️ Classic, reliable, trusted test framework for Node.js and the browser
Also reload changed file
Bjørge Næss71a6836fb3d2
diff --git a/bin/_mocha b/bin/_mochaindex 917788fd..259f3aae 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -207,10 +207,11 @@ if (program.watch) {play(frames);- utils.watch(utils.files(cwd), function(){- stop()+ utils.watch(utils.files(cwd), function(file){+ stop();suite = suite.clone();ui = interfaces[program.ui](suite);+ delete require.cache[file];load(files, function(){run(suite, function(){play(frames);