This Pull Request updates dependency mocha from v5.0.1 to v5.0.2
Release Notes
### [`v5.0.2`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#502--2018-03-05)
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]: Do not swallow errors that are thrown asynchronously from passing tests ([@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]: Fix stack trace reformatting problem ([@outsideris])
#### :nut_and_bolt Other
- [#3248]: Update `browser-stdout` to v1.3.1 ([@honzajavorek])
[#3248]: `https://github.com/mochajs/mocha/issues/3248`
[#3226]: `https://github.com/mochajs/mocha/issues/3226`
[#3093]: `https://github.com/mochajs/mocha/issues/3093`
[@honzajavorek]: https://github.com/honzajavorek
---
Commits
#### v5.0.2
- [`f71f347`](https://github.com/mochajs/mocha/commit/f71f3472d1049737ce0e2d2131753b468d45c66a) rename wallaby.js -> .wallaby.js
- [`ec8901a`](https://github.com/mochajs/mocha/commit/ec8901a23c5194b6f7e6eee9c2568e5020c944ce) remove unused functionality in utils module
- [`3537061`](https://github.com/mochajs/mocha/commit/3537061613886f9d37c0889d16f64dbdaf1583db) Update to correctly licensed browser-stdout version
- [`2c720a3`](https://github.com/mochajs/mocha/commit/2c720a35000da0fecf11ef65c20ca4292c226ad7) do not eat exceptions thrown asynchronously from passed tests; closes #3226
- [`5078fc5`](https://github.com/mochajs/mocha/commit/5078fc5325bf7bd02b6cf448792cd1584e052b73) persist paths in stack trace which have cwd as infix
- [`3792bef`](https://github.com/mochajs/mocha/commit/3792bef67b59add3b6d188e53f4d324e1488f159) add opencollective header image to assets/
- [`afcd08f`](https://github.com/mochajs/mocha/commit/afcd08f1fb6782d7d4f7d4d935250279f94d728a) add MAINTAINERS.md to .fossaignore [ci skip]
- [`0542c40`](https://github.com/mochajs/mocha/commit/0542c407fcc08be3a3e293d5df943f22d292e304) update README.md; closes #3191 [ci skip]
- [`6a796cb`](https://github.com/mochajs/mocha/commit/6a796cbbcd6c9f805e482c424327c82ed0398dbf) prepare CHANGELOG for v5.0.2 [ci skip]
- [`ff1bd9e`](https://github.com/mochajs/mocha/commit/ff1bd9eaa491a29d67fa6742766464efeb82ac29) update package-lock.json
- [`f2ee53c`](https://github.com/mochajs/mocha/commit/f2ee53c5ae4583b8117b842ffdbce6ed7387bcaf) Release v5.0.2
Coverage remained the same at 100.0% when pulling 9dd3b251d9f3b57f12cb16aa0682bb2160215ebf on renovate/mocha-5.x into ca6dd52ac0c536277dd5e143c92952042c784462 on master.
Coverage remained the same at 100.0% when pulling 9dd3b251d9f3b57f12cb16aa0682bb2160215ebf on renovate/mocha-5.x into ca6dd52ac0c536277dd5e143c92952042c784462 on master.
This Pull Request updates dependency mocha from
v5.0.1
tov5.0.2
Release Notes
### [`v5.0.2`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#502--2018-03-05) 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]: Do not swallow errors that are thrown asynchronously from passing tests ([@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]: Fix stack trace reformatting problem ([@outsideris]) #### :nut_and_bolt Other - [#3248]: Update `browser-stdout` to v1.3.1 ([@honzajavorek]) [#3248]: `https://github.com/mochajs/mocha/issues/3248` [#3226]: `https://github.com/mochajs/mocha/issues/3226` [#3093]: `https://github.com/mochajs/mocha/issues/3093` [@honzajavorek]: https://github.com/honzajavorek ---Commits
#### v5.0.2 - [`f71f347`](https://github.com/mochajs/mocha/commit/f71f3472d1049737ce0e2d2131753b468d45c66a) rename wallaby.js -> .wallaby.js - [`ec8901a`](https://github.com/mochajs/mocha/commit/ec8901a23c5194b6f7e6eee9c2568e5020c944ce) remove unused functionality in utils module - [`3537061`](https://github.com/mochajs/mocha/commit/3537061613886f9d37c0889d16f64dbdaf1583db) Update to correctly licensed browser-stdout version - [`2c720a3`](https://github.com/mochajs/mocha/commit/2c720a35000da0fecf11ef65c20ca4292c226ad7) do not eat exceptions thrown asynchronously from passed tests; closes #3226 - [`5078fc5`](https://github.com/mochajs/mocha/commit/5078fc5325bf7bd02b6cf448792cd1584e052b73) persist paths in stack trace which have cwd as infix - [`3792bef`](https://github.com/mochajs/mocha/commit/3792bef67b59add3b6d188e53f4d324e1488f159) add opencollective header image to assets/ - [`afcd08f`](https://github.com/mochajs/mocha/commit/afcd08f1fb6782d7d4f7d4d935250279f94d728a) add MAINTAINERS.md to .fossaignore [ci skip] - [`0542c40`](https://github.com/mochajs/mocha/commit/0542c407fcc08be3a3e293d5df943f22d292e304) update README.md; closes #3191 [ci skip] - [`6a796cb`](https://github.com/mochajs/mocha/commit/6a796cbbcd6c9f805e482c424327c82ed0398dbf) prepare CHANGELOG for v5.0.2 [ci skip] - [`ff1bd9e`](https://github.com/mochajs/mocha/commit/ff1bd9eaa491a29d67fa6742766464efeb82ac29) update package-lock.json - [`f2ee53c`](https://github.com/mochajs/mocha/commit/f2ee53c5ae4583b8117b842ffdbce6ed7387bcaf) Release v5.0.2This PR has been generated by Renovate Bot.