Releases: mochajs/mocha
Releases · mochajs/mocha
v4.0.1
v4.0.0
4.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
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
- #2095: Remove
stdout:
prefix from browser reporter logs (@skeggse) - #2295: Add separator in "unified diff" output (@olsonpm)
- #2686: Print failure message when
--forbid-pending
or--forbid-only
is specified (@ScottFreeCode) - #2814: Indent contexts for better readability when reporting failures (@charlierudolph)
👎 Deprecations
- #2493: The
--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
🔩 Other
- #2890: Speed up build by (re-)consolidating SauceLabs tests (@boneskull)
v3.5.3
v3.5.2
v3.5.1
3.5.1 / 2017-09-09
📰 News
- 📣 Mocha is now sponsoring PDXNode! If you're in the Portland area, come check out the monthly talks and hack nights!
🐛 Fixes
- #2997: Fix missing
xit
export for "require" interface (@solodynamo) - #2957: Fix unicode character handling in XUnit reporter failures (@jkrems)
🔩 Other
- #2986: Add issue and PR templates (@kungapal)
- #2918: Drop bash dependency for glob-related tests (@ScottFreeCode)
- #2922: Improve
--compilers
coverage (@ScottFreeCode) - #2981: Fix tpyos and spelling errors (@jsoref)
v3.5.0
v3.5.0 / 2017-07-31
📰 News
- Mocha now has a code of conduct (thanks @kungapal!).
- Old issues and PRs are now being marked "stale" by Probot's "Stale" plugin. If an issue is marked as such, and you would like to see it remain open, simply add a new comment to the ticket or PR.
- WARNING: Support for non-ES5-compliant environments will be dropped starting with version 4.0.0 of Mocha!
🔒 Security Fixes
- #2860: Address CVE-2015-8315 via upgrade of debug (@boneskull)
🎉 Enhancements
- #2696: Add
--forbid-only
and--forbid-pending
flags. Use these in CI or hooks to ensure tests aren't accidentally being skipped! (@charlierudolph) - #2813: Support Node.js 8's
--napi-modules
flag (@jupp0r)
🔩 Other
- Various CI-and-test-related fixes and improvements (@boneskull, @dasilvacontin, @PopradiArpad, @Munter, @ScottFreeCode)
- "Officially" support Node.js 8 (@elergy)
fake-success
3.4.2 / 2017-05-24
🐛 Fixes
- #2802: Remove call to deprecated os.tmpDir (@makepanic)
- #2820: Eagerly set process.exitCode (@chrisleck)
🔩 Other
Ohai CRLF...
Fixed a publishing mishap with git's autocrlf settings.
v3.4.0
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
This week's highlights:
allowUncaught
added to commandline as--allow-uncaught
(and bugfixed)- warning-related Node flags
🎉 Enhancements
- #2793, #2697: add --allowUncaught to Node.js (@lrowe)
- #2733: Add
--no-warnings
and--trace-warnings
flags (@sonicdoe)
🐛 Fixes
🔩 Other
- #2778: Add license report and scan status (@xizhao)
- #2794: no special case for macOS running Karma locally (@boneskull)
- #2795: reverts use of semistandard directly ([#2648]) (@boneskull)
coverave
Thanks to all our contributors, maintainers, sponsors, and users! ❤️
As highlights:
- We've got coverage now!
- Testing is looking less flaky \o/.
- No more nitpicking about "mocha.js" build on PRs.
🎉 Enhancements
- #2659: Adds support for loading reporter from an absolute or relative path (@sul4bh)
- #2769: Support
--inspect-brk
on command-line (@igwejk)
🐛 Fixes
🔍 Coverage
- #2672: Add coverage for node tests (@c089, @Munter)
- #2680: Increase tests coverage for base reporter (@epallerols)
- #2690: Increase tests coverage for doc reporter (@craigtaub)
- #2701: Increase tests coverage for landing, min, tap and list reporters (@craigtaub)
- #2691: Increase tests coverage for spec + dot reporters (@craigtaub)
- #2698: Increase tests coverage for xunit reporter (@craigtaub)
- #2699: Increase tests coverage for json-stream, markdown and progress reporters (@craigtaub)
- #2703: Cover .some() function in utils.js with tests (@seppevs)
- #2773: Add tests for loading reporters w/ relative/absolute paths (@sul4bh)
🔩 Other
- Remove bin/.eslintrc; ensure execs are linted (@boneskull)
- #2542: Expand CONTRIBUTING.md (@boneskull)
- #2660: Double timeouts on integration tests (@Munter)
- #2653: Update copyright year ([@Scottkao85], @Munter)
- #2621: Update dependencies to enable Greenkeeper (@boneskull, @greenkeeper)
- #2625: Use trusty container in travis-ci; use "artifacts" addon (@boneskull)
- #2670: doc(CONTRIBUTING): fix link to org members (@coderbyheart)
- Add Mocha propaganda to README.md (@boneskull)
- #2470: Avoid test flake in "delay" test (@boneskull)
- #2675: Limit browser concurrency on sauce (@boneskull)
- #2669: Use temporary test-only build of mocha.js for browsers tests (@Munter)
- Fix "projects" link in README.md (@boneskull)
- #2678: Chore(Saucelabs): test on IE9, IE10 and IE11 (@coderbyheart)
- #2648: Use
semistandard
directly (@kt3k) - #2727: Make the build reproducible (@lamby)