This repository has been archived by the owner on Jul 24, 2019. It is now read-only.
chore(deps): update dependency mocha to v5 #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.5.3
->5.2.0
Release Notes
mochajs/mocha
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
v5.0.0
Compare Source
Mocha starts off 2018 right by again dropping support for unmaintained rubbish.
Welcome @vkarpov15 to the team!
💥 Breaking Changes
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
--file
command line argument (documentation) (@hswolff)🐛 Fixes
😎 Developer Experience
📖 Documentation
--no-timeouts
docs (@dfberry)done()
callback docs (@maraisr)README.md
organization (@xxczaki)🔩 Other
v4.1.0
Compare Source
This is mainly a "housekeeping" release.
Welcome @Bamieh and @xxczaki to the team!
🐛 Fixes
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)🎉 Enhancements
--no-diff
flag will completely disable diff output (@CapacitorSet)📖 Documentation
docs/
(@boneskull)🔩 Other
v4.0.1
Compare Source
🐛 Fixes
v4.0.0
Compare Source
You might want to read this before filing a new bug! 😝
💥 Breaking Changes
For more info, please read this article.
Compatibility
Default Behavior
node
from exiting will do so when run in Mocha. Supply the--exit
flag to revert to pre-v4.0.0 behavior ([@ScottFreeCode], @boneskull)Reporter Output
stdout:
prefix from browser reporter logs (@skeggse)--forbid-pending
or--forbid-only
is specified ([@ScottFreeCode])👎 Deprecations
--compilers
command-line option is now soft-deprecated and will emit a warning onSTDERR
. Read this for more info and workarounds ([@ScottFreeCode], @boneskull)🎉 Enhancements
📖 Documentation
README.md
andCONTRIBUTING.md
(@skeggse)🔩 Other
v3.5.3
Compare Source
🐛 Fixes
v3.5.2
Compare Source
🐛 Fixes
v3.5.1
Compare Source
📰 News
🐛 Fixes
xit
export for "require" interface (@solodynamo)🔩 Other
--compilers
coverage ([@ScottFreeCode])v3.5.0
Compare Source
📰 News
🔒 Security Fixes
🎉 Enhancements
--forbid-only
and--forbid-pending
flags. Use these in CI or hooks to ensure tests aren't accidentally being skipped! (@charlierudolph)--napi-modules
flag (@jupp0r)🔩 Other
v3.4.2
Compare Source
🐛 Fixes
os.tmpDir
(@makepanic)process.exitCode
(@chrisleck)🔩 Other
v3.4.1
Compare Source
Fixed a publishing mishap with git's autocrlf settings.
v3.3.0
Compare Source
Thanks to all our contributors, maintainers, sponsors, and users! ❤️
As highlights:
🎉 Enhancements
--inspect-brk
on command-line (@igwejk)🐛 Fixes
🔍 Coverage
🔩 Other
semistandard
directly (@kt3k)v3.2.0
Compare Source
📰 News
Mocha is now a JS Foundation Project!
Mocha is proud to have joined the JS Foundation. For more information, read the announcement.
Contributor License Agreement
Under the foundation, all contributors to Mocha must sign the JS Foundation CLA before their code can be merged. When sending a PR--if you have not already signed the CLA--a friendly bot will ask you to do so.
Mocha remains licensed under the MIT license.
🐛 Bug Fix
--watch
encounters broken symlinks (@villesau)list
reporter (@Aldaviva)🎉 Enhancement
--inspect
flag to CLI help (@ughitsaaron)🔩 Other
README.md
(@boneskull, [@ScottFreeCode], [@dasilvacontin])Thanks to all our contributors, sponsors and backers! Keep on the lookout for a public roadmap and new contribution guide coming soon.
v3.1.2
Compare Source
🐛 Bug Fix
Error
'sstack
property isn't writable (@boneskull)v3.1.1
Compare Source
🐛 Bug Fix
done()
was called multiple times when it wasn't (@frankleonrose)🔩 Other
.js
files (@boneskull)v3.1.0
Compare Source
🎉 Enhancement
--inspect
on command-line (@simov)🐛 Bug Fix
this.skip()
is called (@boneskull)SIGINT
encountered; exit code can no longer rollover at 256 (@Munter)only()
/skip()
in IE7/IE8 (@boneskull)String
constructor (more) (@boneskull)v3.0.2
Compare Source
🐛 Bug Fix
describe.only()
suites (@not-an-aardvark)json-cov
andhtml-cov
reporters in CLI (@boneskull)v3.0.1
Compare Source
🐛 Bug Fix
describe.only()
suites (@not-an-aardvark)v3.0.0
Compare Source
💥 Breaking Changes
npm
less than1.4.0
. Previously, this requirement only affected Mocha's development dependencies. In short, this allows Mocha to depend on packages which have dependencies fixed to major versions (^
)..only()
is no longer "fuzzy", can be used multiple times, and generally just works like you think it should. 😂To avoid common bugs, when a test injects a callback function (suggesting asynchronous execution), calls it, and returns a
Promise
, Mocha will now throw an exception:The above test will fail with
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
.When a test timeout value greater than
2147483648
is specified in any context (--timeout
,mocha.setup()
, per-suite, per-test, etc.), the timeout will be disabled and the test(s) will be allowed to run indefinitely. This is equivalent to specifying a timeout value of0
. See MDN for reasoning.The
dot
reporter now uses more visually distinctive characters when indicating "pending" and "failed" tests.Mocha no longer supports component.
The long-forsaken
HTMLCov
andJSONCov
reporters--and any relationship to the "node-jscoverage" project--have been removed.spec
reporter now omits leading carriage returns (\r
) in non-TTY environment.🎉 Enhancements
--grep
and browser'sgrep
querystring; enables flags such asi
for case-insensitive matches andu
for unicode. ([@a8m])dot
reporter;,
will denote a "pending" test and!
will denote a "failing" test. (@elliottcable).only()
behavior. ([@a8m])this.skip()
in async tests and hooks. (@boneskull)--preserve-symlinks
. (@rosswarren)🐛 Bug Fixes
Date.prototype.toISOString()
,JSON
, or has a non-standard implementation ofJSON
. ([@ndhoule], @boneskull)after()
failing to execute if test skipped usingthis.skip()
inbeforeEach()
; no longer marks the entire suite as "pending". ([@dasilvacontin], @boneskull)markdown
andhtml
(browser) reporters. ([@ScottFreeCode])html
(browser) reporter. (@AviVahl)doc
reporter crashing when test fails. (@jleyba)browser-entry.js
) is published to npm (for use with bundlers). (@boneskull)this.slow()
without a value would blast any previously set value. (@boneskull)--help
on CLI. ([@ScottFreeCode])this.timeout()
with very large values (@callumacrae, @boneskull)🔩 Other
glob
,commander
,escape-string-regexp
, andsupports-color
. (@boneskull, @RobLoach)engines
field inpackage.json
. (@shinnn, @boneskull)We ❤️ our backers and sponsors!
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.