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 assertionassert(true===true);
// test complete & is marked as passingdone();
// ...but something evil lurks withinsetTimeout(() => {
thrownewError('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').
#3148: Drop support for IE9 and IE10 (@Bamieh)
Practically speaking, only code which consumes (through bundling or otherwise) the userland buffer module should be affected. However, Mocha will no longer test against these browsers, nor apply fixes for them.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Coverage remained the same at 80.198% when pulling 6f051c29db3fc57be77b1025222397c8b992779d on depfu/update/npm/mocha-5.2.0 into 8a6cec532def96f5f54d8005b4b64e62362705cb on master.
Coverage remained the same at 80.198% when pulling 6f051c29db3fc57be77b1025222397c8b992779d on depfu/update/npm/mocha-5.2.0 into 8a6cec532def96f5f54d8005b4b64e62362705cb on master.
We've upgraded a dependency and all tests pass. \o/
You should probably take a good look at this before merging this pull request, of course.
What changed?
✳️ mocha ( → 5.2.0) · Repo · Changelog
Release Notes
5.2.0
5.2.0 / 2018-05-18
mocha.opts
(@plroebuck)before
hooks when using--bail
(@outsideris)Buffer.from()
(@harrysarson)5.1.1
5.1.1 / 2018-04-18
--watch
(@boneskull)5.1.0
5.1.0 / 2018-04-12
--exclude
option (@metalex9)5.0.5
5.0.5 / 2018-03-22
Welcome @outsideris to the team!
--bail
failing to bail within hooks (@outsideris)describe.skip()
) (@outsideris)CHANGELOG.md
(@tagoro9, @honzajavorek)5.0.4
5.0.4 / 2018-03-07
5.0.3
5.0.3 / 2018-03-06
This patch features a fix to address a potential "low severity" ReDoS vulnerability in the diff package (a dependency of Mocha).
diff
to v3.5.0 (@anishkny)generateDiff()
inBase
reporter (@harrysarson)5.0.2
5.0.2 / 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!
#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)
:nut_and_bolt Other
browser-stdout
to v1.3.1 (@honzajavorek)5.0.1
5.0.1 / 2018-02-07
...your garden-variety patch release.
Special thanks to Wallaby.js for their continued support!❤️
--delay
now works with.only()
(@silviom)--glob
docs (@outsideris)5.0.0
5.0.0 / 2018-01-17
Mocha starts off 2018 right by again dropping support for unmaintained rubbish.
Welcome @vkarpov15 to the team!
Practically speaking, only code which consumes (through bundling or otherwise) the userland buffer module should be affected. However, Mocha will no longer test against these browsers, nor apply fixes for them.
--file
command line argument (documentation) (@hswolff)--no-timeouts
docs (@dfberry)done()
callback docs (@maraisr)README.md
organization (@xxczaki)4.1.0
4.1.0 / 2017-12-28
This is mainly a "housekeeping" release.
Welcome @Bamieh and @xxczaki to the team!
progress
reporter now accepts reporter options (@canoztokmak)xit
inbdd
interface now properly returns itsTest
object (@Bamieh)--help
will now help you even if you have amocha.opts
(@Zarel)--no-diff
flag will completely disable diff output (@CapacitorSet)docs/
(@boneskull)Not all release notes shown. View the full release notes
Commits
See the full diff on Github. The new version differs by 30 commits:
Release v5.2.0
reformat missed files
ensure scripts/*.js gets prettiered
update CHANGELOG.md for v5.2.0 [ci skip]
update all dependencies
migrate Mocha's tests to Unexpected assertion library (#3343)
docs(docs/index.md): Update "mocha.opts" documentation
feat(bin/options.js): Add support for comment lines in "mocha.opts"
fix busted lint-staged config
Annotate when exceptions are caught but ignored; closes #3354 (#3356)
remove dead code in bin/_mocha
fix(ocd): re-order Node.js tests in .travis.yml (descending)
fix to exit correctly when using bail flag
add Node.js v10 to build; fix win32 issues (#3350)
update package-lock.json for npm@6 [ci skip]
fix(bin/_mocha): Make `--watch-extensions` default to 'js'
reformat everything with Prettier
add Prettier, ESLint and githook integrations
use custom docs/API.md instead of broken README.md
use renamed @mocha/docdash
Remove a bunch of jsdoc comments that introduced wrong output
Fix dual class + module exposition of Mocha
Fix missing LICENSE
Replace documentation with jsdoc and use mocha-docdash pretty layout
remove old svg logo
fix growl asset paths
update contributors [ci skip]
fixed redundant images folders
remove Node.js v7 from AppVeyor build; add Node.js v9
replace deprecated New Buffer() with Buffer.from()
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands