Skip to content

Commit

Permalink
Revert "remove default js in "--watch-extensions" option; closes #3275"
Browse files Browse the repository at this point in the history
This reverts commit c580294.
  • Loading branch information
boneskull committed Apr 18, 2018
1 parent 7057638 commit a5fd5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,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>,...', 'specify extensions to monitor with --watch', list, [])
.option('--watch-extensions <ext>,...', 'additional 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')
Expand Down Expand Up @@ -538,7 +538,7 @@ if (program.watch) {
process.exit(130);
});

const watchFiles = utils.files(cwd, program.watchExtensions);
const watchFiles = utils.files(cwd, [ 'js' ].concat(program.watchExtensions));
let runAgain = false;

loadAndRun = () => {
Expand Down

0 comments on commit a5fd5e6

Please sign in to comment.