Update mocha to the latest version 🚀
Version 4.0.0 of mocha just got published.
| Dependency | mocha |
|---|---|
| Current Version | 3.5.3 |
| Type | devDependency |
The version 4.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of mocha. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v4.0.04.0.0 / 2017-10-02
You might want to read this before filing a new bug!
💥 Breaking Changes
For more info, please read this article.
Compatibility
- #3016: Drop support for unmaintained versions of Node.js (@boneskull):
- 0.10.x
- 0.11.x
- 0.12.x
- iojs (any)
- 5.x.x
- #2979: Drop support for non-ES5-compliant browsers (@boneskull):
- IE7
- IE8
- PhantomJS 1.x
- #2615: Drop Bower support; old versions (3.x, etc.) will remain available (@ScottFreeCode, @boneskull)
Default Behavior
- #2879: By default, Mocha will no longer force the process to exit once all tests complete. This means any test code (or code under test) which would normally prevent
nodefrom exiting will do so when run in Mocha. Supply the--exitflag to revert to pre-v4.0.0 behavior (@ScottFreeCode, @boneskull)
Reporter Output
- #2095: Remove
stdout:prefix from browser reporter logs (@skeggse) - #2295: Add separator in "unified diff" output (@olsonpm)
- #2686: Print failure message when
--forbid-pendingor--forbid-onlyis specified (@ScottFreeCode) - #2814: Indent contexts for better readability when reporting failures (@charlierudolph)
👎 Deprecations
- #2493: The
--compilerscommand-line option is now soft-deprecated and will emit a warning onSTDERR. Read this for more info and workarounds (@ScottFreeCode, @boneskull)
🎉 Enhancements
📖 Documentation
🔩 Other
- #2890: Speed up build by (re-)consolidating SauceLabs tests (@boneskull)
Commits
The new version differs by 48 commits.
d69bf14Release v4.0.0171b9f9pfix "prepublishOnly" potential portability problem60e39d9Update link to wiki (GitHub at the leading--)804f9d5Update link because GitHub ate the leading--3326c23update CHANGELOG for v4.0.0 [ci skip]6dd9252add link to wiki on --compilers deprecation96318e1Deprecate --compilers92beda9drop bower support58a4c6aremove unused .npmignore7af6611kill Date#toISOString shim43501a2reduce noise about slow tests; make a few tests faster, etc.fa228e9update --exit / --no-exit integration test for new default behavior3fdd3ffSwitch default from forced exit to no-exitc5d69e0add integration tests for --exit/--no-exit3a7f8dcenhance runMochaJSON() helper by returning the subprocess instance
There are 48 commits in total.
See the full diff
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot :palm_tree:
Version 4.0.1 just got published.
Update to this version instead 🚀
Release Notes
v4.0.14.0.1 / 2017-10-05
🐛 Fixes
- #3051: Upgrade Growl to v1.10.3 to fix its peer dep problems (@dpogue)
Commits
The new version differs by 6 commits.
eb8bf8dRelease v4.0.13b485eaupdate CHANGELOG.md for v4.0.1 [ci skip]96e5c1aupgrade eslint to v4.8.0d7cff37Update growl to 1.10.30cdd921remove preversion script; test on publish; closes #2999f49c0ceFix changelog issues/pr URLs (#3047)
See the full diff
Version 4.1.0 just got published.
Update to this version instead 🚀
Release Notes
v4.1.04.1.0 / 2017-12-28
This is mainly a "housekeeping" release.
Welcome @Bamieh and @xxczaki to the team!
🐛 : Fixes
- #2661:
progressreporter now accepts reporter options (@canoztokmak) - #3142:
xitinbddinterface now properly returns itsTestobject (@Bamieh) - #3075: Diffs now computed eagerly to avoid misinformation when reported (@abrady0)
- #2745:
--helpwill now help you even if you have amocha.opts(@Zarel)
🎉 Enhancements
- #2514: The
--no-diffflag will completely disable diff output (@CapacitorSet) - #3058: All "setters" in Mocha's API are now also "getters" if called without arguments (@makepanic)
📖 Documentation
- #3170: Optimization and site speed improvements (@Munter)
- #2987: Moved the old site repo into the main repo under
docs/(@boneskull) - #2896: Add maintainer guide (@boneskull)
- Various fixes and updates (@xxczaki, @maty21, @leedm777)
🔩 Other
- Test improvements and fixes (@eugenet8k, @ngeor, @38elements, @Gerhut, @ScottFreeCode, @boneskull)
- Refactoring and cruft excision (@38elements, @Bamieh, @finnigantime, @boneskull)
Commits
The new version differs by 409 commits.
6b9ddc6Release v4.1.03c4b116update CHANGELOG for v4.1.05be22b2options.reporterOptionsare used for progress reporterea96b18add .fossaignore [ci skip]adc67fdRevert "[ImgBot] optimizes images (#3175)"ae3712c[ImgBot] optimizes images (#3175)33db6b1Use x64 node on appveyor4a6e095Run appveyor tests on x64 platform. Might enable sharp installation3abed9bLint netlify-headers script119543eAdd preconnect for doubleclick domain that google analytics results in contactingbd5109eRemove crossorigin='anonymous' from preconnect hints. Only needed for fonts, xhr and es module loads123ee4fHandle the case where all avatars are already loaded at the time when the script exexecutes64deadcSpecific value for inlining htmlimages to guarantee logo is inlined8f1ded4https urls where possibled5a5125Be explicit about styling of screenshot images
There are 250 commits in total.
See the full diff
Version 5.0.0 just got published.
Update to this version instead 🚀
Release Notes
v5.0.05.0.0 / 2018-01-17
Mocha starts off 2018 right by again dropping support for unmaintained rubbish.
Welcome @vkarpov15 to the team!
💥 Breaking Changes
- #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.
🎉 Enhancements
- #3181: Add useful new
--filecommand line argument (documentation) (@hswolff)
🐛 Fixes
- #3187: Fix inaccurate test duration reporting (@FND)
- #3202: Fix bad markup in HTML reporter (@DanielRuf)
😎 Developer Experience
📖 Documentation
- #3137: Add missing
--no-timeoutsdocs (@dfberry) - #3134: Improve
done()callback docs (@maraisr) - #3135: Fix cross-references (@vkarpov15)
- #3163: Fix tpyos (@tbroadley)
- #3177: Tweak
README.mdorganization (@xxczaki) - Misc updates (@boneskull)
🔩 Other
- #3118: Move TextMate Integration to its own repo (@Bamieh)
- #3185: Add Node.js v9 to build matrix; remove v7 (@xxczaki)
- #3172: Markdown linting (@boneskull)
- Test & Netlify updates (@Munter, @boneskull)
Commits
The new version differs by 26 commits.
cc4a818Release v5.0.09f61c04finalize v5.0.0 CHANGELOG [ci skip]a7267b4remove more references to make and Makefiledc58252prep changelog for v5.0.0 [ci skip]f8a1d2adocs(index): add missing doc link (#3203); closes #3135401997fupdate package-lock.json50aec7aAdd ability to pass in test files to be ran before positional files via --file (#3190)7d8abe0fix id and class definition0a3e32bRewrite Makefile using NPS Scripts. Closes #2352c7730a6Drop TextMate integration inside mocha closes #31185c6e99bupdate ESM tests to run against headless chrome instead of saucelabs' chrome onlyac1dd70attempt to get travis working againe8b5592Align netlify config with admin panel565726dAdded Netlify config filee54370ereplace phantomjs with puppeteer for browser tests; closes #3128
There are 26 commits in total.
See the full diff
Version 5.0.1 just got published.
Update to this version instead 🚀
Commits
The new version differs by 15 commits.
09ce746Release v5.0.170027b6update changelog for v5.0.1 [ci skip]44aae9fadd working wallaby config412cf27[Update] license yearb7377b3rename help-wanted to "help wanted" in stale.ymld975a6afix memory leak when run in v8; closes #31193509029update .gitignore to only ignore root mocha.js [ci skip]b57f623fix: When using --delay, .only() no longer works. Issue #1838cd74322Slight copy update on docs for test directoryf687d2bupdate docs for the glob14fc030Add all supported wallaby editors2e7e4c0rename "common-mistake" label to "faq"bca57f4clarify docs on html, xunit and 3p reporters; closes #19062fe2d01Revert "fix travis "before script" script"c0ac1b9fix travis "before script" script
See the full diff
Version 5.0.2 just got published.
Update to this version instead 🚀
Release Notes
v5.0.25.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!
🐛 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
Runnerinstance will emit theendevent 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
- #3248: Update
browser-stdoutto v1.3.1 (@honzajavorek)
Commits
The new version differs by 13 commits.
f2ee53cRelease v5.0.2ff1bd9eupdate package-lock.json6a796cbprepare CHANGELOG for v5.0.2 [ci skip]0542c40update README.md; closes #3191 [ci skip]afcd08fadd MAINTAINERS.md to .fossaignore [ci skip]3792befadd opencollective header image to assets/5078fc5persist paths in stack trace which have cwd as infix2c720a3do not eat exceptions thrown asynchronously from passed tests; closes #32263537061Update to correctly licensed browser-stdout versionec8901aremove unused functionality in utils modulef71f347rename wallaby.js -> .wallaby.jsc4ef568fix PR url73d55acfix typos in changelog [ci skip]
See the full diff
Version 5.0.3 just got published.
Update to this version instead 🚀
Release Notes
v5.0.35.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).
🔒 Security Fixes
🔩 Other
- #3011: Expose
generateDiff()inBasereporter (@harrysarson)
Commits
The new version differs by 6 commits.
da6e5c9Release v5.0.370d9262update CHANGELOG.md for v5.0.3 [ci skip]aaaa5abfix: ReDoS vuln in [email protected] › [email protected] (#3266)8df5727Tidies up code after review660bcccadds unit tests covering Base.generateDiffbdcb3c3exposes generateDiff function from base reporter
See the full diff
Version 5.0.4 just got published.
Update to this version instead 🚀
Release Notes
v5.0.45.0.4 / 2018-03-07
🐛 Fixes
- #3265: Fixes regression in "watch" functionality introduced in v5.0.2 (@outsideris)
Version 5.0.5 just got published.
Update to this version instead 🚀
Release Notes
v5.0.55.0.5 / 2018-03-22
Welcome @outsideris to the team!
🐛 Fixes
- #3096: Fix
--bailfailing to bail within hooks (@outsideris) - #3184: Don't skip too many suites (using
describe.skip()) (@outsideris)
📖 Documentation
- #3133: Improve docs regarding "pending" behavior (@ematicipo)
- #3276, #3274: Fix broken stuff in
CHANGELOG.md(@tagoro9, @honzajavorek)
🔩 Other
- #3208: Improve test coverage for AMD users (@outsideris)
- #3267: Remove vestiges of PhantomJS from CI (@anishkny)
- #2952: Fix a debug message (@boneskull)
Commits
The new version differs by 18 commits.
c11e1e2Release v5.0.5b5a556eadd changes for v5.0.5 [ci skip]424ef84increase default timeout for browser unit tests19104e3fix debug msg in Runnable#slow; closes #2952f4275b6extract checking AMD bundle as own test19b764dAddressed feedback2c19503Fixed lintingab84f02chore(docs): rewording pending tests6383916fix to bail option works properly with hooks (#3278)0060884keep hierarchy for skipped suites w/o a callback39df783docs: Fix typo in an emoji27af2cffix(changelog): update links to some PRsd76f490chore(ci): Remove PHANTOMJS_CDNURL, nit86af6bbfix my carelessness in e19e879e19e879ensure lib/mocha.js is not ignored by ESLint
There are 18 commits in total.
See the full diff
Version 5.1.0 just got published.
Update to this version instead 🚀
Release Notes
v5.1.05.1.0 / 2018-04-12
🎉 Enhancements
🐛 Fixes
- #3318: Fix failures in circular objects in JSON reporter (@jeversmann, @boneskull)
📖 Documentation
- #3323: Publish actual API documentation! (@dfberry, @Munter)
- #3299: Improve docs around exclusive tests (@nicgirault)
🔩 Other
- #3302, #3308, #3310, #3315, #3316: Build matrix improvements (more info) (@outsideris, @boneskull)
- #3272: Refactor reporter tests (@jMuzsik)
Commits
The new version differs by 23 commits ahead by 23, behind by 2.
40d9ea3Release v5.1.0bf34e42update CHANGELOG for v5.1.0 [ci skip]63462ddImplement API documentation using npm:documantation.741b0bdfix circular objects in json reporter; closes #2433 (#3318)8010501fix wrong version in package.json! [ci skip]94e7289doc precision for exclusive tests8b6c957optimize package-scripts.jsd71b80aPATH workaround for Travis CI bug7544bd3further build improvements (#3315)88b9882update package-lock.json for v5.0.5 [ci skip]4ae26b2improve caching performance in CI (#3310)ff9f3cfupdate stages and build matrices (#3308)f2560e7add update-contributors script; closes #3289 (#3290)cd1c835upgrade eslint; lint35dac3euse build stages for Travis CI (#3302)
There are 23 commits in total.
See the full diff
Version 5.1.1 just got published.
Update to this version instead 🚀
Release Notes
v5.1.15.1.1 / 2018-04-18
🐛 Fixes
- #3325: Revert change which broke
--watch(@boneskull)
Commits
The new version differs by 6 commits.
e0bc1c1Release v5.1.1eac31feupdate package-lock.json [ci skip]fde558dupdate CHANGELOG.md for v5.1.1 [ci skip]a5fd5e6Revert "remove default js in "--watch-extensions" option; closes #3275"7057638update outdated info in docs/README.md [ci skip]5212718fix ESLint problems and consolidate configuration
See the full diff
Version 5.2.0 just got published.
Update to this version instead 🚀
Release Notes
v5.2.05.2.0 / 2018-05-18
🎉 Enhancements
- #3375: Add support for comments in
mocha.opts(@plroebuck)
🐛 Fixes
- #3346: Exit correctly from
beforehooks when using--bail(@outsideris)
📖 Documentation
🔩 Other
- #3330: Use
Buffer.from()(@harrysarson) - #3295: Remove redundant folder (@DavNej)
- #3356: Refactoring (@plroebuck)
Commits
The new version differs by 30 commits.
5bd33a0Release v5.2.00a5604freformat missed files7c8f551ensure scripts/*.js gets prettieredd8ea2baupdate CHANGELOG.md for v5.2.0 [ci skip]7203ed7update all dependenciesfb5393bmigrate Mocha's tests to Unexpected assertion library (#3343)fae9af2docs(docs/index.md): Update "mocha.opts" documentation9d9e6c6feat(bin/options.js): Add support for comment lines in "mocha.opts"e0306fffix busted lint-staged configf2be6d4Annotate when exceptions are caught but ignored; closes #3354 (#3356)889e681remove dead code in bin/_mocha8712b95fix(ocd): re-order Node.js tests in .travis.yml (descending)3ab0e7efix to exit correctly when using bail flagd87b12eadd Node.js v10 to build; fix win32 issues (#3350)b392af5update package-lock.json for npm@6 [ci skip]
There are 30 commits in total.
See the full diff
- The
devDependencymocha was updated from3.5.3to6.0.0.
Update to this version instead 🚀
Release Notes for v6.0.0
6.0.0 / 2019-02-18
💥 Breaking Changes
- #3149: Drop Node.js v4.x support (@outsideris)
- #3556: Changes to command-line options (@boneskull):
--grepand--fgrepare now mutually exclusive; attempting to use both will cause Mocha to fail instead of simply ignoring--grep--compilersis no longer supported; attempting to use will cause Mocha to fail with a link to more information-dis no longer an alias for--debug;-dis currently ignored- #3275:
--watch-extensionsno longer impliesjs; it must be explicitly added (@TheDancingCode)
- #2908:
tapreporter emits error messages (@chrmod) - #2819: When conditionally skipping in a
beforehook, subsequentbeforehooks and tests in nested suites are now skipped (@bannmoore) - #627: Emit filepath in "timeout exceeded" exceptions where applicable (@boneskull)
- #3556:
lib/template.htmlhas moved tolib/browser/template.html(@boneskull) - #2576: An exception is now thrown if Mocha fails to parse or find a
mocha.optsat a user-specified path (@plroebuck) - #3458: Instantiating a
Base-extending reporter without aRunnerparameter will throw an exception (@craigtaub) - #3125: For consumers of Mocha's programmatic API, all exceptions thrown from Mocha now have a
codeproperty (and some will have additional metadata). SomeErrormessages have changed. Please use thecodeproperty to checkErrortypes instead of themessageproperty; these descriptions will be localized in the future. (@craigtaub)
📠 Deprecations
These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
-gcusers should use--gc-globalinstead- Consumers of the function exported by
bin/optionsshould now use theloadMochaOptsorloadOptions(preferred) functions exported by thelib/cli/optionsmodule
Regarding the Mocha class constructor (from lib/mocha):
- Use property
color: falseinstead ofuseColors: false - Use property
timeout: falseinstead ofenableTimeouts: false
All of the above deprecations were introduced by #3556.
mocha.opts is now considered "legacy"; please prefer RC file or package.json over mocha.opts.
🎉 Enhancements
- #3726: Add ability to unload files from
requirecache (@plroebuck)
Enhancements introduced in #3556:
-
Mocha now supports "RC" files in JS, JSON, YAML, or
package.json-based (usingmochaproperty) format.mocharc.js,.mocharc.json,.mocharc.yamlor.mocharc.ymlare valid "rc" file names and will be automatically loaded- Use
--config /path/to/rc/fileto specify an explicit path - Use
--package /path/to/package.jsonto specify an explicitpackage.jsonto read themochaprop from - Use
--no-configor--no-packageto completely disable loading of configuration via RC file andpackage.json, respectively - Configurations are merged as applicable using the priority list:
- Command-line arguments
- RC file
package.jsonmocha.opts- Mocha's own defaults
- Check out these example config files
-
Node/V8 flag support in
mochaexecutable:- Support all allowed
nodeflags as supported by the running version ofnode(also thanks to @demurgos) - Support any V8 flag by prepending
--v8-to the flag name - All flags are also supported via config files,
package.jsonproperties, ormocha.opts - Debug-related flags (e.g.,
--inspect) now imply--no-timeouts - Use of e.g.,
--debugwill automatically invoke--inspectif supported by running version ofnode
- Support all allowed
-
Support negation of any Mocha-specific command-line flag by prepending
--no-to the flag name -
Interfaces now have descriptions when listed using
--interfacesflag -
Mochaconstructor supports all options -
--extensionis now an alias for--watch-extensionsand affects non-watch-mode test runs as well. For example, to run onlytest/*.coffee(nottest/*.js), you can domocha --require coffee-script/register --extensions coffee. -
#3552:
tapreporter is now TAP13-capable (@plroebuck & @mollstam) -
#3535: Mocha's version can now be queried programmatically via public property
Mocha.prototype.version(@plroebuck) -
#2529:
Runnernow emits aretryevent when tests are retried (reporters can listen for this) (@catdad) -
#2962, #3111: In-browser notification support; warn about missing prereqs when
--growlsupplied (@plroebuck)
🐛 Fixes
- #3737: Fix falsy values from options globals (@plroebuck)
- #3707: Fix encapsulation issues for
Suite#_onlyTestsandSuite#_onlySuites(@vkarpov15) - #3711: Fix diagnostic messages dealing with plurality and markup of output (@plroebuck)
- #3723: Fix "reporter-option" to allow comma-separated options (@boneskull)
- #3722: Fix code quality and performance of
lookupFilesandfiles(@plroebuck) - #3650, #3654: Fix noisy error message when no files found (@craigtaub)
- #3632: Tests having an empty title are no longer confused with the "root" suite (@juergba)
- #3666: Fix missing error codes (@vkarpov15)
- #3684: Fix exiting problem in Node.js v11.7.0+ (@addaleax)
- #3691: Fix
--delay(and other boolean options) not working in all cases (@boneskull) - #3692: Fix invalid command-line argument usage not causing actual errors (@boneskull)
- #3698, #3699: Fix debug-related Node.js options not working in all cases (@boneskull)
- #3700: Growl notifications now show the correct number of tests run (@outsideris)
- #3686: Avoid potential ReDoS when diffing large objects (@cyjake)
- #3715: Fix incorrect order of emitted events when used programmatically (@boneskull)
- #3706: Fix regression wherein
--reporter-option/--reporter-optionsdid not support comma-separated key/value pairs (@boneskull) - Fix missing
mocharc.jsonin published package (@boneskull) - #3356:
--no-timeoutsand--timeout 0now does what you'd expect (@boneskull) - #3475: Restore
--no-exitoption (@boneskull) - #3570: Long-running tests now respect
SIGINT(@boneskull) - #2944:
--forbid-onlyand--forbid-pendingnow "fail fast" when encountered on a suite (@outsideris) - #1652, #2951: Fix broken clamping of timeout values (@plroebuck)
- #2753:
startandendevents now emitted properly fromRunnerinstance when using Mocha programmatically (@outsideris) - #2095, #3521: Do not log
stdout:prefix in browser console (@Bamieh) - #3595: Fix mochajs.org deployment problems (@papandreou)
- #3518: Improve
utils.isPromise()(@fabiosantoscode) - #3320: Fail gracefully when non-extensible objects are thrown in async tests (@fargies)
- #2475: XUnit does not duplicate test result numbers in "errors" and "failures"; "failures" will always be zero (@mlucool)
- #3398, #3598, #3457, #3617: Fix regression wherein
--bailwould not execute "after" nor "after each" hooks (@juergba) - #3580: Fix potential exception when using XUnit reporter programmatically (@Lana-Light)
- #1304: Do not output color to
TERM=dumb(@plroebuck)
📖 Documentation
- #3525: Improvements to
.github/CONTRIBUTING.md(@markowsiak) - #3466: Update description of
slowoption (@finfin) - #3405: Remove references to bower installations (@goteamtim)
- #3361: Improvements to
--watchdocs (@benglass) - #3136: Improve docs around globbing and shell expansion (@akrawchyk)
- #2819: Update docs around skips and hooks (@bannmoore)
- Many improvements by @outsideris
- #3652: Switch from Jekyll to Eleventy (@Munter)
🔩 Other
- #3677: Add error objects for createUnsupportedError and createInvalidExceptionError (@boneskull)
- #3733: Removed unnecessary processing in post-processing hook (@wanseob)
- #3730: Update nyc to latest version (@coreyfarrell)
- #3648, #3680: Fixes to support latest versions of unexpected and unexpected-sinon (@sunesimonsen)
- #3638: Add meta tag to site (@MartijnCuppens)
- #3653: Fix parts of test suite failing to run on Windows (@boneskull)
- #3557: Use
msuserland module instead of hand-rolled solution (@gizemkeser) - Many CI fixes and other refactors by @plroebuck
- Test refactors by @outsideris
Commits
The new version differs by 209 commits ahead by 209, behind by 39.
42303e2Release v6.0.0a553ca7punctuation updates for changelog v6.0.0c710792grammar updates for changelog v6.0.09f9293aupdate changelog for v6.0.0a540eb0remove "projects" section from MAINTAINERS.md [ci skip]52b5c42Uppercased JSON reporter name indescribetitle (#3739)82307fbFix.globalsto remove falsy values (#3737)56dc28eRemove unnecessary post-processing code having no effect; closes #3708 (#3733)16b4281Documentation updates (#3728)5d9d3ebUpdate nyc118c9aeRefactor out usages of Suite#_onlyTests and Suite#_onlyTests (#3689) (#3707)0dacd1fAdd ability to unload files fromrequirecache (redux) (#3726)66a52f2update release steps [ci skip]45ae014RefactorlookupFilesandfiles(#3722)94c9320fix --reporter-option to allow comma-separated options; closes #3706
There are 209 commits in total.
See the full diff
- The
devDependencymocha was updated from3.5.3to6.0.1.
Update to this version instead 🚀
Release Notes for v6.0.1
6.0.1 / 2019-02-21
The obligatory round of post-major-release bugfixes.
🐛 Fixes
These issues were regressions.
- #3754 - Mocha again finds
test.jswhen run without arguments (@plroebuck) - #3756 - Mocha again supports third-party interfaces via
--ui(@boneskull) - #3755 - Fix broken
--watch(@boneskull) - #3759 - Fix unwelcome deprecation notice when Mocha run against languages (CoffeeScript) with implicit return statements; returning a non-
undefinedvalue from adescribecallback is no longer considered deprecated (@boneskull)
📖 Documentation
- #3738 - Upgrade to
@mocha/docdash@2(@tendonstrength) - #3751 - Use preferred names for example config files (@Szauka)
Commits
The new version differs by 9 commits.
6d3d6b4Release v6.0.12146eceupdate CHANGELOG.md for v6.0.17c9221dbackout deprecation of value returned from suite; closes #3744b7cfcebfix --watch not finding any files to execute; closes #3748b836d73Upgrade docdash version - issue #36637926f47fix --ui issues, closes #374600f2ed9dev dep upgrades from "npm audit" and "npm upgrade"34afb1afix(cli/run.js): Revert default glob to match Mocha-5.26d5a0dbBring the example congfiguration file in line with the documentation. (#3751)
See the full diff
- The
devDependencymocha was updated from3.5.3to6.0.2.
Update to this version instead 🚀
Release Notes for v6.0.2
6.0.2 / 2019-02-25
🐛 Fixes
Two more regressions fixed:
- #3768: Test file paths no longer dropped from
mocha.opts(@boneskull) - #3767:
--requiredoes not break on module names that look like certainnodeflags (@boneskull)
Commits
The new version differs by 6 commits.
00a895fRelease v6.0.21edce76update CHANGELOG for v6.0.2 [ci skip]347e9dbfix broken positional arguments in config; ensure positional args are unique; closes #37639e31e9dfix handling of bareword args matching node flags; closes #37616535965Update "karma-browserify" to eliminate Karma middleware warning (#3762)37febb6improve issue template. (#3411)
See the full diff
- The
devDependencymocha was updated from3.5.3to6.1.0.
Update to this version instead 🚀
Release Notes for v6.1.0
6.1.0 / 2019-04-07
🔒 Security Fixes
- #3845: Update dependency "js-yaml" to v3.13.0 per npm security advisory (@plroebuck)
🎉 Enhancements
- #3766: Make reporter constructor support optional
optionsparameter (@plroebuck) - #3760: Add support for config files with
.jsoncextension (@sstephant)
📠 Deprecations
These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
🐛 Fixes
- #3829: Use cwd-relative pathname to load config file (@plroebuck)
- #3745: Fix async calls of
this.skip()in "before each" hooks (@juergba) - #3669: Enable
--allow-uncaughtfor uncaught exceptions thrown inside hooks (@givanse)
and some regressions:
- #3848: Fix
Suitecloning by copyingrootproperty (@fatso83) - #3816: Guard against undefined timeout option (@boneskull)
- #3814: Update "yargs" in order to avoid deprecation message (@boneskull)
- #3788: Fix support for multiple node flags (@aginzberg)
📖 Documentation
- mochajs/mocha-examples: New repository of working examples of common configurations using mocha (@craigtaub)
- #3850: Remove pound icon showing on header hover on docs (@jd2rogers2)
- #3812: Add autoprefixer to documentation page CSS (@Munter)
- #3811: Update doc examples "tests.html" (@DavidLi119)
- #3807: Mocha website HTML tweaks (@plroebuck)
- #3793: Update config file example ".mocharc.yml" (@cspotcode)
🔩 Other
- #3830: Replace dependency "findup-sync" with "find-up" for faster startup (@cspotcode)
- #3799: Update devDependencies to fix many npm vulnerabilities (@XhmikosR)
Commits
The new version differs by 28 commits.
f4fc95aRelease v6.1.0bd29dbdupdate CHANGELOG for v6.1.0 [ci skip]aaf2b72Use cwd-relative pathname to load config file (#3829)b079d24upgrade deps as per npm audit fix; closes #3854e87c689Deprecate this.skip() for "after all" hooks (#3719)81cfa90Copy Suite property "root" when cloning; closes #3847 (#3848)8aa2fc4Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)586bf78Update JS-YAML to address security issue (#3845)d1024a3Update doc examples "tests.html" (#3811)1d570e0Delete "/docs/example/chai.js"ade8b90runner.js: "self.test" undefined in Browser (#3835)0098147Replace findup-sync with find-up for faster startup (#3830)d5ba121Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)a3089adupdate package-lock75430ecUpgrade yargs-parser dependency to avoid loading 2 copies of yargs
There are 28 commits in total.
See the full diff