mocha 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 5.1.1 / 2018-04-18
2
+
3
+ ## :bug: Fixes
4
+
5
+ - [#3325]: Revert change which broke `--watch` ([@boneskull])
6
+
7
+ [#3325]: https://github.com/mochajs/mocha/issues/3325
8
+
1
9
  # 5.1.0 / 2018-04-12
2
10
 
3
11
  ## :tada: Enhancements
package/bin/_mocha CHANGED
@@ -201,7 +201,7 @@ program
201
201
  .option('--trace-deprecation', 'show stack traces on deprecations')
202
202
  .option('--trace-warnings', 'show stack traces on node process warnings')
203
203
  .option('--use_strict', 'enforce strict mode')
204
- .option('--watch-extensions <ext>,...', 'specify extensions to monitor with --watch', list, [])
204
+ .option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, [])
205
205
  .option('--delay', 'wait for async suite definition')
206
206
  .option('--allow-uncaught', 'enable uncaught errors to propagate')
207
207
  .option('--forbid-only', 'causes test marked with only to fail the suite')
@@ -538,7 +538,7 @@ if (program.watch) {
538
538
  process.exit(130);
539
539
  });
540
540
 
541
- const watchFiles = utils.files(cwd, program.watchExtensions);
541
+ const watchFiles = utils.files(cwd, [ 'js' ].concat(program.watchExtensions));
542
542
  let runAgain = false;
543
543
 
544
544
  loadAndRun = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
package/bin/.eslintrc.yml DELETED
@@ -1,3 +0,0 @@
1
- env:
2
- es6: true
3
- browser: false
@@ -1,4 +0,0 @@
1
- env:
2
- node: false
3
- browser: false
4
- commonjs: true