Js-mocha

Latest version: v2.2.5

Safety actively analyzes 622766 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 22

5.0.5

Welcome [outsideris] to the team!

:bug: Fixes

- [3096]: Fix `--bail` failing to bail within hooks ([outsideris])
- [3184]: Don't skip too many suites (using `describe.skip()`) ([outsideris])

:book: Documentation

- [3133]: Improve docs regarding "pending" behavior ([ematicipo])
- [3276], [3274]: Fix broken stuff in `CHANGELOG.md` ([tagoro9], [honzajavorek])

:nut_and_bolt: Other

- [3208]: Improve test coverage for AMD users ([outsideris])
- [3267]: Remove vestiges of PhantomJS from CI ([anishkny])
- [2952]: Fix a debug message ([boneskull])

[3096]: https://github.com/mochajs/mocha/issues/3096
[3184]: https://github.com/mochajs/mocha/issues/3184
[3133]: https://github.com/mochajs/mocha/issues/3133
[3276]: https://github.com/mochajs/mocha/pull/3276
[3274]: https://github.com/mochajs/mocha/pull/3274
[3208]: https://github.com/mochajs/mocha/issues/3208
[2952]: https://github.com/mochajs/mocha/issues/2952
[3267]: https://github.com/mochajs/mocha/pull/3267

[ematicipo]: https://github.com/ematicipo
[tagoro9]: https://github.com/tagoro9
[honzajavorek]: https://github.com/honajavorek
[anishkny]: https://github.com/anishkny

5.0.4

:bug: Fixes

- [3265]: Fixes regression in "watch" functionality introduced in v5.0.2 ([outsideris])

[3265]: https://github.com/mochajs/mocha/issues/3265

5.0.3

This patch features a fix to address a potential "low severity" [ReDoS vulnerability](https://snyk.io/vuln/npm:diff:20180305) in the [diff](https://npm.im/diff) package (a dependency of Mocha).

:lock: Security Fixes

- [3266]: Bump `diff` to v3.5.0 ([anishkny])

:nut_and_bolt: Other

- [3011]: Expose `generateDiff()` in `Base` reporter ([harrysarson])

[3266]: https://github.com/mochajs/mocha/pull/3266
[3011]: https://github.com/mochajs/mocha/issues/3011

[anishkny]: https://github.com/anishkny
[harrysarson]: https://github.com/harrysarson

5.0.2

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!

:bug: Fixes

- [3226]: Do not swallow errors that are thrown asynchronously from passing tests ([boneskull]). Example:

js
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 the `end` event *twice*; you *may* need to change your reporter to use `runner.once('end')` intead of `runner.on('end')`.
- [3093]: Fix stack trace reformatting problem ([outsideris])

:nut_and_bolt: Other

- [3248]: Update `browser-stdout` to v1.3.1 ([honzajavorek])

[3248]: https://github.com/mochajs/mocha/issues/3248
[3226]: https://github.com/mochajs/mocha/issues/3226
[3093]: https://github.com/mochajs/mocha/issues/3093
[honzajavorek]: https://github.com/honzajavorek

5.0.1

...your garden-variety patch release.

Special thanks to [Wallaby.js](https://wallabyjs.com) for their continued support! :heart:

:bug: Fixes

- [1838]: `--delay` now works with `.only()` ([silviom])
- [3119]: Plug memory leak present in v8 ([boneskull])

:book: Documentation

- [3132], [3098]: Update `--glob` docs ([outsideris])
- [3212]: Update [Wallaby.js](https://wallabyjs.com)-related docs ([ArtemGovorov])
- [3205]: Remove outdated cruft ([boneskull])

:nut_and_bolt: Other

- [3224]: Add proper Wallaby.js config ([ArtemGovorov])
- [3230]: Update copyright year ([josephlin55555])

[1838]: https://github.com/mochajs/mocha/issues/1838
[3119]: https://github.com/mochajs/mocha/issues/3119
[3132]: https://github.com/mochajs/mocha/issues/3132
[3098]: https://github.com/mochajs/mocha/issues/3098
[3212]: https://github.com/mochajs/mocha/pull/3212
[3205]: https://github.com/mochajs/mocha/pull/3205
[3224]: https://github.com/mochajs/mocha/pull/3224
[3230]: https://github.com/mochajs/mocha/pull/3230
[silviom]: https://github.com/silviom
[outsideris]: https://github.com/outsideris
[ArtemGovorov]: https://github.com/ArtemGovorov
[josephlin55555]: https://github.com/josephlin55555

5.0.0

Mocha starts off 2018 right by again dropping support for *unmaintained rubbish*.

Welcome [vkarpov15] to the team!

:boom: Breaking Changes

- **[3148]: Drop support for IE9 and IE10** ([Bamieh])
Practically speaking, only code which consumes (through bundling or otherwise) the userland [buffer](https://npm.im/buffer) module should be affected. However, Mocha will no longer test against these browsers, nor apply fixes for them.

:tada: Enhancements

- [3181]: Add useful new `--file` command line argument ([documentation](https://mochajs.org/--file-file)) ([hswolff])

:bug: Fixes

- [3187]: Fix inaccurate test duration reporting ([FND])
- [3202]: Fix bad markup in HTML reporter ([DanielRuf])

:sunglasses: Developer Experience

- [2352]: Ditch GNU Make for [nps](https://npm.im/nps) to manage scripts ([TedYav])

:book: 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])

:nut_and_bolt: Other

- [3118]: Move TextMate Integration to [its own repo](https://github.com/mochajs/mocha.tmbundle) ([Bamieh])
- [3185]: Add Node.js v9 to build matrix; remove v7 ([xxczaki])
- [3172]: Markdown linting ([boneskull])
- Test & Netlify updates ([Munter], [boneskull])

[3148]: https://github.com/mochajs/mocha/issues/3148
[3181]: https://github.com/mochajs/mocha/issues/3181
[3187]: https://github.com/mochajs/mocha/issues/3187
[3202]: https://github.com/mochajs/mocha/pull/3202
[2352]: https://github.com/mochajs/mocha/issues/2352
[3137]: https://github.com/mochajs/mocha/issues/3137
[3134]: https://github.com/mochajs/mocha/issues/3134
[3135]: https://github.com/mochajs/mocha/issues/3135
[3163]: https://github.com/mochajs/mocha/pull/3163
[3177]: https://github.com/mochajs/mocha/pull/3177
[3118]: https://github.com/mochajs/mocha/issues/3118
[3185]: https://github.com/mochajs/mocha/issues/3185
[3172]: https://github.com/mochajs/mocha/issues/3172
[hswolff]: https://github.com/hswolff
[FND]: https://github.com/FND
[DanielRuf]: https://github.com/DanielRuf
[TedYav]: https://github.com/TedYav
[dfberry]: https://github.com/dfberry
[maraisr]: https://github.com/maraisr
[vkarpov15]: https://github.com/vkarpov15
[tbroadley]: https://github.com/tbroadley

Page 1 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.