☕️ Classic, reliable, trusted test framework for Node.js and the browser
remove default js in "--watch-extensions" option; closes #3275
Thomas Vantuycomc580294893e1
diff --git a/bin/_mocha b/bin/_mochaindex 3802e70b..ba250e97 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -200,7 +200,7 @@ program.option('--trace-deprecation', 'show stack traces on deprecations').option('--trace-warnings', 'show stack traces on node process warnings').option('--use_strict', 'enforce strict mode')- .option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, [])+ .option('--watch-extensions <ext>,...', 'specify extensions to monitor with --watch', list, []).option('--delay', 'wait for async suite definition').option('--allow-uncaught', 'enable uncaught errors to propagate').option('--forbid-only', 'causes test marked with only to fail the suite')@@ -529,7 +529,7 @@ if (program.watch) {process.exit(130);});- const watchFiles = utils.files(cwd, [ 'js' ].concat(program.watchExtensions));+ const watchFiles = utils.files(cwd, program.watchExtensions);let runAgain = false;loadAndRun = () => {