☕️ Classic, reliable, trusted test framework for Node.js and the browser
Remove the spinner when using --watch (fix #806)
Travis Jeffery0e6dda92ed95
diff --git a/bin/_mocha b/bin/_mochaindex 055e3ea1..4d64006f 100644--- a/bin/_mocha+++ b/bin/_mocha@@ -305,22 +305,12 @@ if (program.watch) {process.exit();});- var spinner = 'win32' == process.platform- ? ['|','/','-','\\']- : ['◜','◠','◝','◞','◡','◟'];-- var frames = spinner.map(function(c) {- return sprintf(' \u001b[96m%s \u001b[90mwatching\u001b[0m', c);- });-var watchFiles = utils.files(cwd);function loadAndRun() {try {mocha.files = files;- mocha.run(function(){- play(frames);- });+ mocha.run(function(){});} catch(e) {console.log(e.stack);}