Compare Source
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!
🐛 Fixes
#3226: Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull]). Example:
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').
This Pull Request updates dependency mocha from
v5.0.0
tov5.2.0
Release Notes
v5.2.0
Compare Source
🎉 Enhancements
mocha.opts
(@plroebuck)🐛 Fixes
before
hooks when using--bail
(@outsideris)📖 Documentation
🔩 Other
Buffer.from()
(@harrysarson)v5.1.1
Compare Source
🐛 Fixes
--watch
([@boneskull])v5.1.0
Compare Source
🎉 Enhancements
--exclude
option (@metalex9)🐛 Fixes
📖 Documentation
🔩 Other
v5.0.5
Compare Source
Welcome @outsideris to the team!
🐛 Fixes
--bail
failing to bail within hooks (@outsideris)describe.skip()
) (@outsideris)📖 Documentation
CHANGELOG.md
(@tagoro9, @honzajavorek)🔩 Other
v5.0.4
Compare Source
🐛 Fixes
v5.0.3
Compare Source
This patch features a fix to address a potential "low severity" ReDoS vulnerability in the diff package (a dependency of Mocha).
🔒 Security Fixes
diff
to v3.5.0 (@anishkny)🔩 Other
generateDiff()
inBase
reporter (@harrysarson)v5.0.2
Compare Source
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!
🐛 Fixes
#3226: Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull]). Example:
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 theend
event twice; you may need to change your reporter to userunner.once('end')
intead ofrunner.on('end')
.#3093: Fix stack trace reformatting problem (@outsideris)
🔩 Other
browser-stdout
to v1.3.1 (@honzajavorek)v5.0.1
Compare Source
…your garden-variety patch release.
Special thanks to Wallaby.js for their continued support! ❤️
🐛 Fixes
--delay
now works with.only()
(@silviom)📖 Documentation
--glob
docs (@outsideris)🔩 Other
This PR has been generated by Renovate Bot.