mochajs/mocha
### [`v5.2.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#520--2018-05-18)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.1.1...v5.2.0)
#### :tada: Enhancements
- [#3375](https://togithub.com/mochajs/mocha/pull/3375): Add support for comments in `mocha.opts` ([@plroebuck](https://togithub.com/plroebuck))
#### :bug: Fixes
- [#3346](https://togithub.com/mochajs/mocha/pull/3346): Exit correctly from `before` hooks when using `--bail` ([@outsideris](https://togithub.com/outsideris))
#### :book: Documentation
- [#3328](https://togithub.com/mochajs/mocha/pull/3328): Mocha-flavored [API docs](https://mochajs.org/api/)! ([@Munter](https://togithub.com/munter))
#### :nut_and_bolt: Other
- [#3330](https://togithub.com/mochajs/mocha/pull/3330): Use `Buffer.from()` ([@harrysarson](https://togithub.com/harrysarson))
- [#3295](https://togithub.com/mochajs/mocha/pull/3295): Remove redundant folder ([@DavNej](https://togithub.com/DajNev))
- [#3356](https://togithub.com/mochajs/mocha/pull/3356): Refactoring ([@plroebuck](https://togithub.com/plroebuck))
### [`v5.1.1`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#511--2018-04-18)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.1.0...v5.1.1)
#### :bug: Fixes
- [#3325](https://togithub.com/mochajs/mocha/issues/3325): Revert change which broke `--watch` ([@boneskull](https://togithub.com/boneskull))
### [`v5.1.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#510--2018-04-12)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.5...v5.1.0)
#### :tada: Enhancements
- [#3210](https://togithub.com/mochajs/mocha/pull/3210): Add `--exclude` option ([@metalex9](https://togithub.com/metalex9))
#### :bug: Fixes
- [#3318](https://togithub.com/mochajs/mocha/pull/3318): Fix failures in circular objects in JSON reporter ([@jeversmann](https://togithub.com/jeversmann), [@boneskull](https://togithub.com/boneskull))
#### :book: Documentation
- [#3323](https://togithub.com/mochajs/mocha/pull/3323): Publish actual [API documentation](https://mochajs.org/api/)! ([@dfberry](https://togithub.com/dfberry), [@Munter](https://togithub.com/munter))
- [#3299](https://togithub.com/mochajs/mocha/pull/3299): Improve docs around exclusive tests ([@nicgirault](https://togithub.com/nicgirault))
#### :nut_and_bolt: Other
- [#3302](https://togithub.com/mochajs/mocha/pull/3302), [#3308](https://togithub.com/mochajs/mocha/pull/3308), [#3310](https://togithub.com/mochajs/mocha/pull/3310), [#3315](https://togithub.com/mochajs/mocha/pull/3315), [#3316](https://togithub.com/mochajs/mocha/pull/3316): Build matrix improvements ([more info](https://boneskull.com/mocha-and-travis-ci-build-stages/)) ([@outsideris](https://togithub.com/outsideris), [@boneskull](https://togithub.com/boneskull))
- [#3272](https://togithub.com/mochajs/mocha/pull/3272): Refactor reporter tests ([@jMuzsik](https://togithub.com/jMuzsik))
### [`v5.0.5`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#505--2018-03-22)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.4...v5.0.5)
Welcome [@outsideris](https://togithub.com/outsideris) to the team!
#### :bug: Fixes
- [#3096](https://togithub.com/mochajs/mocha/issues/3096): Fix `--bail` failing to bail within hooks ([@outsideris](https://togithub.com/outsideris))
- [#3184](https://togithub.com/mochajs/mocha/issues/3184): Don't skip too many suites (using `describe.skip()`) ([@outsideris](https://togithub.com/outsideris))
#### :book: Documentation
- [#3133](https://togithub.com/mochajs/mocha/issues/3133): Improve docs regarding "pending" behavior ([@ematicipo](https://togithub.com/ematicipo))
- [#3276](https://togithub.com/mochajs/mocha/pull/3276), [#3274](https://togithub.com/mochajs/mocha/pull/3274): Fix broken stuff in `CHANGELOG.md` ([@tagoro9](https://togithub.com/tagoro9), [@honzajavorek](https://togithub.com/honzajavorek))
#### :nut_and_bolt: Other
- [#3208](https://togithub.com/mochajs/mocha/issues/3208): Improve test coverage for AMD users ([@outsideris](https://togithub.com/outsideris))
- [#3267](https://togithub.com/mochajs/mocha/pull/3267): Remove vestiges of PhantomJS from CI ([@anishkny](https://togithub.com/anishkny))
- [#2952](https://togithub.com/mochajs/mocha/issues/2952): Fix a debug message ([@boneskull](https://togithub.com/boneskull))
### [`v5.0.4`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#504--2018-03-07)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.3...v5.0.4)
#### :bug: Fixes
- [#3265](https://togithub.com/mochajs/mocha/issues/3265): Fixes regression in "watch" functionality introduced in v5.0.2 ([@outsideris](https://togithub.com/outsideris))
### [`v5.0.3`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#503--2018-03-06)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.2...v5.0.3)
This patch features a fix to address a potential "low severity" [ReDoS vulnerability](https://snyk.io/vuln/npm:diff:20180305) in the [diff](https://npm.im/diff) package (a dependency of Mocha).
#### :lock: Security Fixes
- [#3266](https://togithub.com/mochajs/mocha/pull/3266): Bump `diff` to v3.5.0 ([@anishkny](https://togithub.com/anishkny))
#### :nut_and_bolt: Other
- [#3011](https://togithub.com/mochajs/mocha/issues/3011): Expose `generateDiff()` in `Base` reporter ([@harrysarson](https://togithub.com/harrysarson))
### [`v5.0.2`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#502--2018-03-05)
[Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.1...v5.0.2)
This release fixes a class of tests which report as _false positives_. **Certain tests will now break**, though they would have previously been reported as passing. Details below. Sorry for the inconvenience!
#### :bug: Fixes
- [#3226](https://togithub.com/mochajs/mocha/issues/3226): Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull](https://togithub.com/boneskull)). Example:
\```js
it('should actually fail, sorry!', function (done) {
// passing assertion
assert(true === true);
// test complete & is marked as passing
done();
// ...but something evil lurks within
setTimeout(() => {
throw new Error('chaos!');
}, 100);
});
\```
Previously to this version, Mocha would have _silently swallowed_ the `chaos!` exception, and you wouldn't know. Well, _now you know_. Mocha cannot recover from this gracefully, so it will exit with a nonzero code.
**Maintainers of external reporters**: _If_ a test of this class is encountered, the `Runner` instance will emit the `end` event _twice_; you _may_ need to change your reporter to use `runner.once('end')` intead of `runner.on('end')`.
- [#3093](https://togithub.com/mochajs/mocha/issues/3093): Fix stack trace reformatting problem ([@outsideris](https://togithub.com/outsideris))
#### :nut_and_bolt: Other
- [#3248](https://togithub.com/mochajs/mocha/issues/3248): Update `browser-stdout` to v1.3.1 ([@honzajavorek](https://togithub.com/honzajavorek))
Renovate configuration
:date: Schedule: "every weekend" in timezone America/New_York.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.
This PR contains the following updates:
5.0.1
->5.2.0
Release Notes
mochajs/mocha
### [`v5.2.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#520--2018-05-18) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.1.1...v5.2.0) #### :tada: Enhancements - [#3375](https://togithub.com/mochajs/mocha/pull/3375): Add support for comments in `mocha.opts` ([@plroebuck](https://togithub.com/plroebuck)) #### :bug: Fixes - [#3346](https://togithub.com/mochajs/mocha/pull/3346): Exit correctly from `before` hooks when using `--bail` ([@outsideris](https://togithub.com/outsideris)) #### :book: Documentation - [#3328](https://togithub.com/mochajs/mocha/pull/3328): Mocha-flavored [API docs](https://mochajs.org/api/)! ([@Munter](https://togithub.com/munter)) #### :nut_and_bolt: Other - [#3330](https://togithub.com/mochajs/mocha/pull/3330): Use `Buffer.from()` ([@harrysarson](https://togithub.com/harrysarson)) - [#3295](https://togithub.com/mochajs/mocha/pull/3295): Remove redundant folder ([@DavNej](https://togithub.com/DajNev)) - [#3356](https://togithub.com/mochajs/mocha/pull/3356): Refactoring ([@plroebuck](https://togithub.com/plroebuck)) ### [`v5.1.1`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#511--2018-04-18) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.1.0...v5.1.1) #### :bug: Fixes - [#3325](https://togithub.com/mochajs/mocha/issues/3325): Revert change which broke `--watch` ([@boneskull](https://togithub.com/boneskull)) ### [`v5.1.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#510--2018-04-12) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.5...v5.1.0) #### :tada: Enhancements - [#3210](https://togithub.com/mochajs/mocha/pull/3210): Add `--exclude` option ([@metalex9](https://togithub.com/metalex9)) #### :bug: Fixes - [#3318](https://togithub.com/mochajs/mocha/pull/3318): Fix failures in circular objects in JSON reporter ([@jeversmann](https://togithub.com/jeversmann), [@boneskull](https://togithub.com/boneskull)) #### :book: Documentation - [#3323](https://togithub.com/mochajs/mocha/pull/3323): Publish actual [API documentation](https://mochajs.org/api/)! ([@dfberry](https://togithub.com/dfberry), [@Munter](https://togithub.com/munter)) - [#3299](https://togithub.com/mochajs/mocha/pull/3299): Improve docs around exclusive tests ([@nicgirault](https://togithub.com/nicgirault)) #### :nut_and_bolt: Other - [#3302](https://togithub.com/mochajs/mocha/pull/3302), [#3308](https://togithub.com/mochajs/mocha/pull/3308), [#3310](https://togithub.com/mochajs/mocha/pull/3310), [#3315](https://togithub.com/mochajs/mocha/pull/3315), [#3316](https://togithub.com/mochajs/mocha/pull/3316): Build matrix improvements ([more info](https://boneskull.com/mocha-and-travis-ci-build-stages/)) ([@outsideris](https://togithub.com/outsideris), [@boneskull](https://togithub.com/boneskull)) - [#3272](https://togithub.com/mochajs/mocha/pull/3272): Refactor reporter tests ([@jMuzsik](https://togithub.com/jMuzsik)) ### [`v5.0.5`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#505--2018-03-22) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.4...v5.0.5) Welcome [@outsideris](https://togithub.com/outsideris) to the team! #### :bug: Fixes - [#3096](https://togithub.com/mochajs/mocha/issues/3096): Fix `--bail` failing to bail within hooks ([@outsideris](https://togithub.com/outsideris)) - [#3184](https://togithub.com/mochajs/mocha/issues/3184): Don't skip too many suites (using `describe.skip()`) ([@outsideris](https://togithub.com/outsideris)) #### :book: Documentation - [#3133](https://togithub.com/mochajs/mocha/issues/3133): Improve docs regarding "pending" behavior ([@ematicipo](https://togithub.com/ematicipo)) - [#3276](https://togithub.com/mochajs/mocha/pull/3276), [#3274](https://togithub.com/mochajs/mocha/pull/3274): Fix broken stuff in `CHANGELOG.md` ([@tagoro9](https://togithub.com/tagoro9), [@honzajavorek](https://togithub.com/honzajavorek)) #### :nut_and_bolt: Other - [#3208](https://togithub.com/mochajs/mocha/issues/3208): Improve test coverage for AMD users ([@outsideris](https://togithub.com/outsideris)) - [#3267](https://togithub.com/mochajs/mocha/pull/3267): Remove vestiges of PhantomJS from CI ([@anishkny](https://togithub.com/anishkny)) - [#2952](https://togithub.com/mochajs/mocha/issues/2952): Fix a debug message ([@boneskull](https://togithub.com/boneskull)) ### [`v5.0.4`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#504--2018-03-07) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.3...v5.0.4) #### :bug: Fixes - [#3265](https://togithub.com/mochajs/mocha/issues/3265): Fixes regression in "watch" functionality introduced in v5.0.2 ([@outsideris](https://togithub.com/outsideris)) ### [`v5.0.3`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#503--2018-03-06) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.2...v5.0.3) This patch features a fix to address a potential "low severity" [ReDoS vulnerability](https://snyk.io/vuln/npm:diff:20180305) in the [diff](https://npm.im/diff) package (a dependency of Mocha). #### :lock: Security Fixes - [#3266](https://togithub.com/mochajs/mocha/pull/3266): Bump `diff` to v3.5.0 ([@anishkny](https://togithub.com/anishkny)) #### :nut_and_bolt: Other - [#3011](https://togithub.com/mochajs/mocha/issues/3011): Expose `generateDiff()` in `Base` reporter ([@harrysarson](https://togithub.com/harrysarson)) ### [`v5.0.2`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#502--2018-03-05) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.0.1...v5.0.2) This release fixes a class of tests which report as _false positives_. **Certain tests will now break**, though they would have previously been reported as passing. Details below. Sorry for the inconvenience! #### :bug: Fixes - [#3226](https://togithub.com/mochajs/mocha/issues/3226): Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull](https://togithub.com/boneskull)). Example: \```js it('should actually fail, sorry!', function (done) { // passing assertion assert(true === true); // test complete & is marked as passing done(); // ...but something evil lurks within setTimeout(() => { throw new Error('chaos!'); }, 100); }); \``` Previously to this version, Mocha would have _silently swallowed_ the `chaos!` exception, and you wouldn't know. Well, _now you know_. Mocha cannot recover from this gracefully, so it will exit with a nonzero code. **Maintainers of external reporters**: _If_ a test of this class is encountered, the `Runner` instance will emit the `end` event _twice_; you _may_ need to change your reporter to use `runner.once('end')` intead of `runner.on('end')`. - [#3093](https://togithub.com/mochajs/mocha/issues/3093): Fix stack trace reformatting problem ([@outsideris](https://togithub.com/outsideris)) #### :nut_and_bolt: Other - [#3248](https://togithub.com/mochajs/mocha/issues/3248): Update `browser-stdout` to v1.3.1 ([@honzajavorek](https://togithub.com/honzajavorek))Renovate configuration
:date: Schedule: "every weekend" in timezone America/New_York.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.