An in-range update of mocha is breaking the build π¨
greenkeeper opened this issue Β· comments
Version 4.1.0 of mocha was just published.
Branch | Build failing π¨ |
---|---|
Dependency | mocha |
Current Version | 4.0.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Status Details
- β continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details
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:
progress
reporter now accepts reporter options (@canoztokmak) - #3142:
xit
inbdd
interface now properly returns itsTest
object (@Bamieh) - #3075: Diffs now computed eagerly to avoid misinformation when reported (@abrady0)
- #2745:
--help
will now help you even if you have amocha.opts
(@Zarel)
π Enhancements
- #2514: The
--no-diff
flag 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.
6b9ddc6
Release v4.1.0
3c4b116
update CHANGELOG for v4.1.0
5be22b2
options.reporterOptions
are used for progress reporterea96b18
add .fossaignore [ci skip]
adc67fd
Revert "[ImgBot] optimizes images (#3175)"
ae3712c
[ImgBot] optimizes images (#3175)
33db6b1
Use x64 node on appveyor
4a6e095
Run appveyor tests on x64 platform. Might enable sharp installation
3abed9b
Lint netlify-headers script
119543e
Add preconnect for doubleclick domain that google analytics results in contacting
bd5109e
Remove crossorigin='anonymous' from preconnect hints. Only needed for fonts, xhr and es module loads
123ee4f
Handle the case where all avatars are already loaded at the time when the script exexecutes
64deadc
Specific value for inlining htmlimages to guarantee logo is inlined
8f1ded4
https urls where possible
d5a5125
Be explicit about styling of screenshot images
There are 250 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 π΄
After pinning to 4.0.1 your tests are still failing. The reported issue might not affect your project. These imprecisions are caused by inconsistent test results.
Version 5.0.0 just got published.
Your tests are still failing with this version. Compare the changes π¨
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
--file
command 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-timeouts
docs (@dfberry) - #3134: Improve
done()
callback docs (@maraisr) - #3135: Fix cross-references (@vkarpov15)
- #3163: Fix tpyos (@tbroadley)
- #3177: Tweak
README.md
organization (@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.
cc4a818
Release v5.0.0
9f61c04
finalize v5.0.0 CHANGELOG [ci skip]
a7267b4
remove more references to make and Makefile
dc58252
prep changelog for v5.0.0 [ci skip]
f8a1d2a
docs(index): add missing doc link (#3203); closes #3135
401997f
update package-lock.json
50aec7a
Add ability to pass in test files to be ran before positional files via --file (#3190)
7d8abe0
fix id and class definition
0a3e32b
Rewrite Makefile using NPS Scripts. Closes #2352
c7730a6
Drop TextMate integration inside mocha closes #3118
5c6e99b
update ESM tests to run against headless chrome instead of saucelabs' chrome only
ac1dd70
attempt to get travis working again
e8b5592
Align netlify config with admin panel
565726d
Added Netlify config file
e54370e
replace 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.
Your tests are still failing with this version. Compare the changes π¨
Commits
The new version differs by 15 commits.
09ce746
Release v5.0.1
70027b6
update changelog for v5.0.1 [ci skip]
44aae9f
add working wallaby config
412cf27
[Update] license year
b7377b3
rename help-wanted to "help wanted" in stale.yml
d975a6a
fix memory leak when run in v8; closes #3119
3509029
update .gitignore to only ignore root mocha.js [ci skip]
b57f623
fix: When using --delay, .only() no longer works. Issue #1838
cd74322
Slight copy update on docs for test directory
f687d2b
update docs for the glob
14fc030
Add all supported wallaby editors
2e7e4c0
rename "common-mistake" label to "faq"
bca57f4
clarify docs on html, xunit and 3p reporters; closes #1906
2fe2d01
Revert "fix travis "before script" script"
c0ac1b9
fix travis "before script" script
See the full diff
Version 5.0.2 just got published.
Your tests are still failing with this version. Compare the changes π¨
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
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
- #3248: Update
browser-stdout
to v1.3.1 (@honzajavorek)
Commits
The new version differs by 13 commits.
f2ee53c
Release v5.0.2
ff1bd9e
update package-lock.json
6a796cb
prepare CHANGELOG for v5.0.2 [ci skip]
0542c40
update README.md; closes #3191 [ci skip]
afcd08f
add MAINTAINERS.md to .fossaignore [ci skip]
3792bef
add opencollective header image to assets/
5078fc5
persist paths in stack trace which have cwd as infix
2c720a3
do not eat exceptions thrown asynchronously from passed tests; closes #3226
3537061
Update to correctly licensed browser-stdout version
ec8901a
remove unused functionality in utils module
f71f347
rename wallaby.js -> .wallaby.js
c4ef568
fix PR url
73d55ac
fix typos in changelog [ci skip]
See the full diff
Version 5.0.3 just got published.
Your tests are still failing with this version. Compare the changes π¨
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()
inBase
reporter (@harrysarson)
Commits
The new version differs by 6 commits.
da6e5c9
Release v5.0.3
70d9262
update CHANGELOG.md for v5.0.3 [ci skip]
aaaa5ab
fix: ReDoS vuln in mocha@5.0.2 βΊ diff@3.3.1 (#3266)
8df5727
Tidies up code after review
660bccc
adds unit tests covering Base.generateDiff
bdcb3c3
exposes generateDiff function from base reporter
See the full diff
Version 5.0.4 just got published.
Your tests are still failing with this version. Compare the changes π¨
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.
Your tests are still failing with this version. Compare the changes π¨
Release Notes
v5.0.55.0.5 / 2018-03-22
Welcome @outsideris to the team!
π Fixes
- #3096: Fix
--bail
failing 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.
c11e1e2
Release v5.0.5
b5a556e
add changes for v5.0.5 [ci skip]
424ef84
increase default timeout for browser unit tests
19104e3
fix debug msg in Runnable#slow; closes #2952
f4275b6
extract checking AMD bundle as own test
19b764d
Addressed feedback
2c19503
Fixed linting
ab84f02
chore(docs): rewording pending tests
6383916
fix to bail option works properly with hooks (#3278)
0060884
keep hierarchy for skipped suites w/o a callback
39df783
docs: Fix typo in an emoji
27af2cf
fix(changelog): update links to some PRs
d76f490
chore(ci): Remove PHANTOMJS_CDNURL, nit
86af6bb
fix my carelessness in e19e879
e19e879
ensure 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.
Your tests are still failing with this version. Compare the changes π¨
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.
40d9ea3
Release v5.1.0
bf34e42
update CHANGELOG for v5.1.0 [ci skip]
63462dd
Implement API documentation using npm:documantation.
741b0bd
fix circular objects in json reporter; closes #2433 (#3318)
8010501
fix wrong version in package.json! [ci skip]
94e7289
doc precision for exclusive tests
8b6c957
optimize package-scripts.js
d71b80a
PATH workaround for Travis CI bug
7544bd3
further build improvements (#3315)
88b9882
update package-lock.json for v5.0.5 [ci skip]
4ae26b2
improve caching performance in CI (#3310)
ff9f3cf
update stages and build matrices (#3308)
f2560e7
add update-contributors script; closes #3289 (#3290)
cd1c835
upgrade eslint; lint
35dac3e
use build stages for Travis CI (#3302)
There are 23 commits in total.
See the full diff
Version 5.1.1 just got published.
Your tests are still failing with this version. Compare the changes π¨
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.
e0bc1c1
Release v5.1.1
eac31fe
update package-lock.json [ci skip]
fde558d
update CHANGELOG.md for v5.1.1 [ci skip]
a5fd5e6
Revert "remove default js in "--watch-extensions" option; closes #3275"
7057638
update outdated info in docs/README.md [ci skip]
5212718
fix ESLint problems and consolidate configuration
See the full diff
Version 5.2.0 just got published.
Your tests are still failing with this version. Compare the changes π¨
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
before
hooks 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.
5bd33a0
Release v5.2.0
0a5604f
reformat missed files
7c8f551
ensure scripts/*.js gets prettiered
d8ea2ba
update CHANGELOG.md for v5.2.0 [ci skip]
7203ed7
update all dependencies
fb5393b
migrate Mocha's tests to Unexpected assertion library (#3343)
fae9af2
docs(docs/index.md): Update "mocha.opts" documentation
9d9e6c6
feat(bin/options.js): Add support for comment lines in "mocha.opts"
e0306ff
fix busted lint-staged config
f2be6d4
Annotate when exceptions are caught but ignored; closes #3354 (#3356)
889e681
remove dead code in bin/_mocha
8712b95
fix(ocd): re-order Node.js tests in .travis.yml (descending)
3ab0e7e
fix to exit correctly when using bail flag
d87b12e
add Node.js v10 to build; fix win32 issues (#3350)
b392af5
update package-lock.json for npm@6 [ci skip]
There are 30 commits in total.
See the full diff
- The
devDependency
mocha was updated from5.2.0
to6.0.0
.
Your tests are still failing with this version. Compare changes
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):
--grep
and--fgrep
are now mutually exclusive; attempting to use both will cause Mocha to fail instead of simply ignoring--grep
--compilers
is no longer supported; attempting to use will cause Mocha to fail with a link to more information-d
is no longer an alias for--debug
;-d
is currently ignored- #3275:
--watch-extensions
no longer impliesjs
; it must be explicitly added (@TheDancingCode)
- #2908:
tap
reporter emits error messages (@chrmod) - #2819: When conditionally skipping in a
before
hook, subsequentbefore
hooks and tests in nested suites are now skipped (@bannmoore) - #627: Emit filepath in "timeout exceeded" exceptions where applicable (@boneskull)
- #3556:
lib/template.html
has moved tolib/browser/template.html
(@boneskull) - #2576: An exception is now thrown if Mocha fails to parse or find a
mocha.opts
at a user-specified path (@plroebuck) - #3458: Instantiating a
Base
-extending reporter without aRunner
parameter will throw an exception (@craigtaub) - #3125: For consumers of Mocha's programmatic API, all exceptions thrown from Mocha now have a
code
property (and some will have additional metadata). SomeError
messages have changed. Please use thecode
property to checkError
types instead of themessage
property; 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:
-gc
users should use--gc-global
instead- Consumers of the function exported by
bin/options
should now use theloadMochaOpts
orloadOptions
(preferred) functions exported by thelib/cli/options
module
Regarding the Mocha
class constructor (from lib/mocha
):
- Use property
color: false
instead ofuseColors: false
- Use property
timeout: false
instead 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
require
cache (@plroebuck)
Enhancements introduced in #3556:
-
Mocha now supports "RC" files in JS, JSON, YAML, or
package.json
-based (usingmocha
property) format.mocharc.js
,.mocharc.json
,.mocharc.yaml
or.mocharc.yml
are valid "rc" file names and will be automatically loaded- Use
--config /path/to/rc/file
to specify an explicit path - Use
--package /path/to/package.json
to specify an explicitpackage.json
to read themocha
prop from - Use
--no-config
or--no-package
to 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.json
mocha.opts
- Mocha's own defaults
- Check out these example config files
-
Node/V8 flag support in
mocha
executable:- Support all allowed
node
flags 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.json
properties, ormocha.opts
- Debug-related flags (e.g.,
--inspect
) now imply--no-timeouts
- Use of e.g.,
--debug
will automatically invoke--inspect
if 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
--interfaces
flag -
Mocha
constructor supports all options -
--extension
is now an alias for--watch-extensions
and 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:
tap
reporter is now TAP13-capable (@plroebuck & @mollstam) -
#3535: Mocha's version can now be queried programmatically via public property
Mocha.prototype.version
(@plroebuck) -
#2529:
Runner
now emits aretry
event when tests are retried (reporters can listen for this) (@catdad) -
#2962, #3111: In-browser notification support; warn about missing prereqs when
--growl
supplied (@plroebuck)
π Fixes
- #3737: Fix falsy values from options globals (@plroebuck)
- #3707: Fix encapsulation issues for
Suite#_onlyTests
andSuite#_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
lookupFiles
andfiles
(@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-options
did not support comma-separated key/value pairs (@boneskull) - Fix missing
mocharc.json
in published package (@boneskull) - #3356:
--no-timeouts
and--timeout 0
now does what you'd expect (@boneskull) - #3475: Restore
--no-exit
option (@boneskull) - #3570: Long-running tests now respect
SIGINT
(@boneskull) - #2944:
--forbid-only
and--forbid-pending
now "fail fast" when encountered on a suite (@outsideris) - #1652, #2951: Fix broken clamping of timeout values (@plroebuck)
- #2753:
start
andend
events now emitted properly fromRunner
instance 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
--bail
would 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
slow
option (@finfin) - #3405: Remove references to bower installations (@goteamtim)
- #3361: Improvements to
--watch
docs (@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
ms
userland 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.
42303e2
Release v6.0.0
a553ca7
punctuation updates for changelog v6.0.0
c710792
grammar updates for changelog v6.0.0
9f9293a
update changelog for v6.0.0
a540eb0
remove "projects" section from MAINTAINERS.md [ci skip]
52b5c42
Uppercased JSON reporter name in
describe
title (#3739)82307fb
Fix
.globals
to remove falsy values (#3737)56dc28e
Remove unnecessary post-processing code having no effect; closes #3708 (#3733)
16b4281
Documentation updates (#3728)
5d9d3eb
Update nyc
118c9ae
Refactor out usages of Suite#_onlyTests and Suite#_onlyTests (#3689) (#3707)
0dacd1f
Add ability to unload files from
require
cache (redux) (#3726)66a52f2
update release steps [ci skip]
45ae014
Refactor
lookupFiles
andfiles
(#3722)94c9320
fix --reporter-option to allow comma-separated options; closes #3706
There are 209 commits in total.
See the full diff
- The
devDependency
mocha was updated from6.0.0
to6.0.1
.
Your tests are still failing with this version. Compare changes
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.js
when 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-
undefined
value from adescribe
callback 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.
6d3d6b4
Release v6.0.1
2146ece
update CHANGELOG.md for v6.0.1
7c9221d
backout deprecation of value returned from suite; closes #3744
b7cfceb
fix --watch not finding any files to execute; closes #3748
b836d73
Upgrade docdash version - issue #3663
7926f47
fix --ui issues, closes #3746
00f2ed9
dev dep upgrades from "npm audit" and "npm upgrade"
34afb1a
fix(cli/run.js): Revert default glob to match Mocha-5.2
6d5a0db
Bring the example congfiguration file in line with the documentation. (#3751)
See the full diff
- The
devDependency
mocha was updated from6.0.1
to6.0.2
.
Your tests are still failing with this version. Compare changes
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:
--require
does not break on module names that look like certainnode
flags (@boneskull)
Commits
The new version differs by 6 commits.
00a895f
Release v6.0.2
1edce76
update CHANGELOG for v6.0.2 [ci skip]
347e9db
fix broken positional arguments in config; ensure positional args are unique; closes #3763
9e31e9d
fix handling of bareword args matching node flags; closes #3761
6535965
Update "karma-browserify" to eliminate Karma middleware warning (#3762)
37febb6
improve issue template. (#3411)
See the full diff
- The
devDependency
mocha was updated from6.0.2
to6.1.0
.
Your tests are still failing with this version. Compare changes
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
options
parameter (@plroebuck) - #3760: Add support for config files with
.jsonc
extension (@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-uncaught
for uncaught exceptions thrown inside hooks (@givanse)
and some regressions:
- #3848: Fix
Suite
cloning by copyingroot
property (@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.
f4fc95a
Release v6.1.0
bd29dbd
update CHANGELOG for v6.1.0 [ci skip]
aaf2b72
Use cwd-relative pathname to load config file (#3829)
b079d24
upgrade deps as per npm audit fix; closes #3854
e87c689
Deprecate this.skip() for "after all" hooks (#3719)
81cfa90
Copy Suite property "root" when cloning; closes #3847 (#3848)
8aa2fc4
Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
586bf78
Update JS-YAML to address security issue (#3845)
d1024a3
Update doc examples "tests.html" (#3811)
1d570e0
Delete "/docs/example/chai.js"
ade8b90
runner.js: "self.test" undefined in Browser (#3835)
0098147
Replace findup-sync with find-up for faster startup (#3830)
d5ba121
Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
a3089ad
update package-lock
75430ec
Upgrade yargs-parser dependency to avoid loading 2 copies of yargs
There are 28 commits in total.
See the full diff
- The
devDependency
mocha was updated from6.1.0
to6.1.1
.
Your tests are still failing with this version. Compare changes
Release Notes for v6.1.1
6.1.1 / 2019-04-07
π Fixes
- Fix Windows End-of-Line publishing issue
- The
devDependency
mocha was updated from6.1.1
to6.1.2
.
Your tests are still failing with this version. Compare changes
Release Notes for v6.1.2
6.1.2 / 2019-04-08
π Fixes
- #3867: Re-publish v6.1.1 from POSIX OS to avoid dropped executable flags (@boneskull)
- The
devDependency
mocha was updated from6.1.2
to6.1.3
.
Your tests are still failing with this version. Compare changes
- The
devDependency
mocha was updated from6.1.3
to6.1.4
.
Your tests are still failing with this version. Compare changes
Release Notes for v6.1.4
6.1.4 / 2019-04-18
π Security Fixes
- #3877: Upgrade js-yaml, addressing code injection vulnerability (@bjornstar)
- The
devDependency
mocha was updated from6.1.4
to6.2.0
.
Your tests are still failing with this version. Compare changes
Release Notes for v6.2.0
6.2.0 / 2019-07-18
π Enhancements
- #3827: Do not fork child-process if no Node flags are present (@boneskull)
- #3725: Base reporter store ref to console.log, see mocha/wiki (@craigtaub)
π Fixes
- #3942: Fix "No test files found" Error when file is passed via
--file
(@gabegorelick) - #3914: Modify Mocha constructor to accept options
global
orglobals
(@pascalpp) - #3894: Fix parsing of config files with
_mocha
binary (@juergba) - #3834: Fix CLI parsing with default values (@boneskull, @juergba)
- #3831: Fix
--timeout
/--slow
string values and duplicate arguments (@boneskull, @juergba)
π Documentation
- #3906: Document option to define custom report name for XUnit reporter (@pkuczynski)
- #3889: Adds doc links for mocha-examples (@craigtaub)
- #3887: Fix broken links (@toyjhlee)
- #3841: Fix anchors to configuration section (@trescube)
π Coverage
- #3915, #3929: Increase tests coverage for
--watch
options (@geigerzaehler)
π© Other
- #3953: Collect test files later, prepares improvements to the
--watch
mode behavior (@geigerzaehler) - #3939: Upgrade for npm audit (@boneskull)
- #3930: Extract
runWatch
into separate module (@geigerzaehler) - #3922: Add
mocha.min.js
file to stacktrace filter (@brian-lagerman) - #3919: Update CI config files to use Node-12.x (@plroebuck)
- #3892: Rework reporter tests (@plroebuck)
- #3872: Rename
--exclude
to--ignore
and create alias (@boneskull) - #3963: Hide stacktrace when cli args are missing (@outsideris)
- #3956: Do not redeclare variable in docs array example (@DanielRuf)
- #3957: Remove duplicate line-height property in
mocha.css
(@DanielRuf) - #3960: Don't re-initialize grep option on watch re-run (@geigerzaehler)
Commits
The new version differs by 39 commits.
bd47776
Release v6.2.0
cc595af
update CHANGELOG.md for v6.2.0 [ci skip]
59d70ee
fix: remove duplicate line-height property (#3957)
f77cac4
fix: do not redeclare variable (#3956)
6201e42
Hide stacktrace when cli args are missing (#3963)
88f45d5
Don't re-initialize grep option on watch re-run (#3960)
5d4dd98
Fix No Files error when file is passed via --files (#3942)
15b96af
Collect test files later (#3953)
ccee5f1
Base reporter store ref to console.log (#3725)
47318a7
update @mocha/contributors to v1.0.4 (#3944)
c903147
More, improved integration tests for watching (#3929)
e341ea4
Update CI config files to use Node-12.x (#3919)
3064d25
update @mocha/docdash to v2.1.1 (#3945)
9ea45e7
do not fork if no node flags present (#3827)
d02a096
modify Mocha constructor to accept options.global or options.globals (#3914)
There are 39 commits in total.
See the full diff
- The
devDependency
mocha was updated from6.2.0
to6.2.1
.
Your tests are still failing with this version. Compare changes
Commits
The new version differs by 11 commits.
ef6c820
Release v6.2.1
9524978
updated CHANGELOG for v6.2.1 [ci skip]
dfdb8b3
Update yargs to v13.3.0 (#3986)
18ad1c1
treat '--require esm' as Node option (#3983)
fcffd5a
Update yargs-unparser to v1.6.0 (#3984)
ad4860e
Remove extraGlobals() (#3970)
b269ad0
Clarify effect of .skip() (#3947)
1e6cf3b
Add Matomo to website (#3765)
91b3a54
fix style on mochajs.org (#3886)
0e9d8ad
tty.getWindowSize is not a function inside a "worker_threads" worker (#3955)
48da42e
Remove jsdoc index.html placeholder from eleventy file structure and fix broken link in jsdoc tutorial (#3966)
See the full diff
- The
devDependency
mocha was updated from6.2.1
to6.2.2
.
Your tests are still failing with this version. Compare changes
Release Notes for v6.2.2
6.2.2 / 2019-10-18
π Fixes
- #4025: Fix duplicate
EVENT_RUN_END
events upon uncaught exception (@juergba) - #4051: Fix "unhide" function in
html
reporter (browser) (@pec9399) - #4063: Fix use of esm in Node.js v8.x (@boneskull)
- #4033: Fix output when multiple async exceptions are thrown (@juergba)
π Documentation
- #4046: Site accessibility fixes (@Mia-jeong)
- #4026: Update docs for custom reporters in browser (@Lindsay-Needs-Sleep)
- #3971: Adopt new OpenJS Foundation Code of Conduct (@craigtaub)
Commits
The new version differs by 12 commits.
843a322
6.2.2
aec8b02
update CHANGELOG for v6.2.2 [ci skip]
7a8b95a
npm audit fixes
cebddf2
Improve reporter documentation for mocha in browser. (#4026)
3f7b987
uncaughtException: report more than one exception per test (#4033)
ee82d38
modify alt text of image from Backers to Sponsors inside Sponsors section in Readme (#4046)
e9c036c
special-case parsing of "require" in unparseNodeArgs(); closes #4035 (#4063)
954cf0b
Fix HTMLCollection iteration to make unhide function work as expected (#4051)
816dc27
uncaughtException: fix double EVENT_RUN_END events (#4025)
9650d3f
add OpenJS Foundation logo to website (#4008)
f04b81d
Adopt the OpenJSF Code of Conduct (#3971)
aca8895
Add link checking to docs build step (#3972)
See the full diff
- The
devDependency
mocha was updated from7.0.0
to7.0.1
.
Your tests are still failing with this version. Compare changes
Release Notes for v7.0.1
7.0.1 / 2020-01-25
π Fixes
- #4165: Fix exception when skipping tests programmatically (@juergba)
- #4153: Restore backwards compatibility for
reporterOptions
(@holm) - #4150: Fix recovery of an open test upon uncaught exception (@juergba)
- #4147: Fix regression of leaking uncaught exception handler (@juergba)
π Documentation
- #4146: Update copyright & trademark notices per OJSF (@boneskull)
- #4140: Fix broken links (@KyoungWan)
π© Other
Commits
The new version differs by 61 commits ahead by 61, behind by 17.
d0f04e9
Release v7.0.1
2277958
update CHANGELOG for v7.0.1 [ci skip]
0be3f78
Fix exception when skipping tests programmatically (#4165)
c0f1d14
uncaughtException: fix recovery when current test is still running (#4150)
9c10ada
Fix backwards compability break for reporterOptions
a24683f
Throw a descriptive error when a non-function is given to a runnable (#4133)
579fd09
update copyright & trademark notices per OJSF; closes #4145
0e1ccbb
Fix leaking global 'uncaughtException' handler (#4147)
7d78f20
Broken links in docs (#4140)
69339a3
Release v7.0.0
99e085f
update CHANGELOG for v7.0.0 [ci skip]
35cf39b
Add reporter alias names to docs (#4127)
3bd2d28
Forbid this.skip() within afterAll hooks (#4136)
24c22be
Fix hook pattern of this.skip() in beforeEach hooks (#3741)
1412dc8
XUnit reporter should handle exceptions during diff generation (#4068)
There are 61 commits in total.
See the full diff
- The
devDependency
mocha was updated from7.0.1
to7.1.0
.
Your tests are still failing with this version. Compare changes
Release Notes for v7.1.0
7.1.0 / 2020-02-26
π Enhancements
#4038: Add Node.js native ESM support (@giltayar)
Mocha supports writing your test files as ES modules:
- Node.js only v12.11.0 and above
- Node.js below v13.2.0, you must set
--experimental-modules
option - current limitations: please check our documentation
- for programmatic usage: see API: loadFilesAsync()
Note: Node.JS native ECMAScript Modules implementation has status: Stability: 1 - Experimental
π Fixes
- #4181: Programmatic API cannot access retried test objects (@juergba)
- #4174: Browser: fix
allowUncaught
option (@juergba)
π Documentation
- #4058: Manage author list in AUTHORS instead of
package.json
(@outsideris)
π© Other
- #4138: Upgrade ESLint v6.8 (@kaicataldo)
Commits
The new version differs by 10 commits.
09b948b
Release v7.1.0
d43092e
update CHANGELOG for v7.1.0 [ci skip]
57be455
Add support for Node.JS native ES modules (#4038)
a995e33
Fix: programmatic API cannot access retried test objects (#4181)
ac12f2c
Browser: fix 'allowUncaught' handling (#4174)
2ff1cb2
uncaughtException: refactor, move and add tests
b431609
docs: update browser options
883ae4b
ESLint: use 'const' instead of 'let'
2a1b637
Upgrade: ESLint v6.8 (#4138)
dbba276
Manage author list in AUTHORS instead of package.json (#4058)
See the full diff
- The
devDependency
mocha was updated from7.1.0
to7.1.1
.
Your tests are still failing with this version. Compare changes
Release Notes for v7.1.1
7.1.1 / 2020-03-18
π Security Fixes
π Fixes
π Documentation
- #4190: Show Netlify badge on footer (@outsideris)
Commits
The new version differs by 6 commits.
7c09e63
Release v7.1.1
7599535
update CHANGELOG for v7.1.1 [ci skip]
3bf650c
security: update mkdirp, yargs, yargs-parser (#4204)
e1389ef
Fix: runner listening to 'start' and 'end' events (#3660)
9cbb6f6
upgrade assetgraph-builder
4dc3cd1
docs: show netlify badge on footer (#4190)
See the full diff