Skip to content

Commit

Permalink
fix(bin/_mocha): Make --watch-extensions default to 'js'
Browse files Browse the repository at this point in the history
The change in c580294 to `--watch-extensions` failed to set a default value. This change specifies
that default value.

Fixes mochajs#3336
  • Loading branch information
plroebuck committed Apr 21, 2018
1 parent 3a65a64 commit a0a2bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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>,...', 'specify extensions to monitor with --watch', list, ['js'])
.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

0 comments on commit a0a2bd3

Please sign in to comment.