-
Notifications
You must be signed in to change notification settings - Fork 14
Update mocha to the latest version 🚀 #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
Merging #25 into master will not change coverage.
The diff coverage isn/a.
@@ Coverage Diff @@ ## master #25 +/- ## ======================================= Coverage 94.73% 94.73% ======================================= Files 2 2 Lines 19 19 Branches 2 2 ======================================= Hits 18 18 Partials 1 1
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 9a4bcd1...6bdc5e6. Read the comment docs.
- The
devDependencymocha was updated from5.2.0to6.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 from5.2.0to6.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 from5.2.0to6.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
- The
devDependencymocha was updated from5.2.0to6.1.1.
- The
devDependencymocha was updated from5.2.0to6.1.2.
- The
devDependencymocha was updated from5.2.0to6.1.3.
- The
devDependencymocha was updated from5.2.0to6.1.4.
- The
devDependencymocha was updated from5.2.0to6.2.0.
- The
devDependencymocha was updated from5.2.0to6.2.1.
- The
devDependencymocha was updated from5.2.0to6.2.2.
- The
devDependencymocha was updated from5.2.0to7.0.1.
- The
devDependencymocha was updated from5.2.0to7.1.0.
- The
devDependencymocha was updated from5.2.0to7.1.1.
- The
devDependencymocha was updated from5.2.0to7.1.2.
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚
Find out how to migrate to Snyk at greenkeeper.io
- The
devDependencymocha was updated from5.2.0to7.2.0.
The devDependency mocha was updated from
5.2.0to6.0.0.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v6.0.0
6.0.0 / 2019年02月18日
💥 Breaking Changes
--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--watch-extensionsno longer impliesjs; it must be explicitly added (@TheDancingCode)tapreporter emits error messages (@chrmod)beforehook, subsequentbeforehooks and tests in nested suites are now skipped (@bannmoore)lib/template.htmlhas moved tolib/browser/template.html(@boneskull)mocha.optsat a user-specified path (@plroebuck)Base-extending reporter without aRunnerparameter will throw an exception (@craigtaub)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-globalinsteadbin/optionsshould now use theloadMochaOptsorloadOptions(preferred) functions exported by thelib/cli/optionsmoduleRegarding the
Mochaclass constructor (fromlib/mocha):color: falseinstead ofuseColors: falsetimeout: falseinstead ofenableTimeouts: falseAll of the above deprecations were introduced by #3556.
mocha.optsis now considered "legacy"; please prefer RC file orpackage.jsonovermocha.opts.🎉 Enhancements
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--config /path/to/rc/fileto specify an explicit path--package /path/to/package.jsonto specify an explicitpackage.jsonto read themochaprop from--no-configor--no-packageto completely disable loading of configuration via RC file andpackage.json, respectivelypackage.jsonmocha.optsNode/V8 flag support in
mochaexecutable:nodeflags as supported by the running version ofnode(also thanks to @demurgos)--v8-to the flag namepackage.jsonproperties, ormocha.opts--inspect) now imply--no-timeouts--debugwill automatically invoke--inspectif supported by running version ofnodeSupport negation of any Mocha-specific command-line flag by prepending
--no-to the flag nameInterfaces now have descriptions when listed using
--interfacesflagMochaconstructor 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)#3428:
xunitreporter shows diffs (@mlucool)#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
Suite#_onlyTestsandSuite#_onlySuites(@vkarpov15)lookupFilesandfiles(@plroebuck)--delay(and other boolean options) not working in all cases (@boneskull)--reporter-option/--reporter-optionsdid not support comma-separated key/value pairs (@boneskull)mocharc.jsonin published package (@boneskull)--no-timeoutsand--timeout 0now does what you'd expect (@boneskull)--no-exitoption (@boneskull)SIGINT(@boneskull)--forbid-onlyand--forbid-pendingnow "fail fast" when encountered on a suite (@outsideris)startandendevents now emitted properly fromRunnerinstance when using Mocha programmatically (@outsideris)stdout:prefix in browser console (@Bamieh)utils.isPromise()(@fabiosantoscode)--bailwould not execute "after" nor "after each" hooks (@juergba)TERM=dumb(@plroebuck)📖 Documentation
.github/CONTRIBUTING.md(@markowsiak)slowoption (@finfin)--watchdocs (@benglass)🔩 Other
msuserland module instead of hand-rolled solution (@gizemkeser)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 #3706There are 209 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴