diff --git a/bin/_mocha b/bin/_mocha index 63ab9a42e5..b5e50f22ee 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -392,14 +392,15 @@ if (program.watch) { rerun(); } }); - - return; -} + +} else { // load -mocha.files = files; -runner = mocha.run(program.exit ? exit : exitLater); + mocha.files = files; + runner = mocha.run(program.exit ? exit : exitLater); + +} function exitLater(code) { process.on('exit', function() { process.exit(code) })