Js.mocha

Latest version: v2.2.5

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

Scan your dependencies

Page 1 of 20

8.0

> - Chrome (latest)
> - Firefox (latest)
> - Safari (latest)
> - Microsoft Edge (latest)
>
> To accomplish this, we now run Mocha's unit tests (and a handful of integration tests) via [Karma](https://npmjs.com/package/karma) and a modified [karma-mocha](https://npmjs.com/package/karma-mocha). Along the way, we had to solve issue [880] (apologies to mderijcke and sukima who had PRs addressing this), as well as replace most usages of [should](https://npmjs.com/package/should) with [expect.js](https://npmjs.com/package/expect.js) for IE8.
>
> Going forward, when sending PRs, your code will *only* run against PhantomJS v1.x (and not hit SauceLabs) [because security](https://docs.travis-ci.com/user/pull-requests/Security-Restrictions-when-testing-Pull-Requests).
>
> Node.js 6.x
> Node.js 6.x "just worked" before, but now it's in the CI matrix, so it's "officially" supported. Mocha *still retains support* for Node.js 0.8.x.
>
> "Minor" Release
> You'll see mostly bug fixes below, but also a couple features--as such, it's a "minor" release.
>
> TYVM
>
> Thanks to everyone who contributed, and our fabulous [sponsors and backers](https://opencollective.com/mochajs)!

- [2079] - Add browser checks to CI; update [browserify](https://npmjs.com/package/browserify) to v13.0.0 ([dasilvacontin], [ScottFreeCode], [boneskull] via c04c1d7, 0b1e9b3, 0dde0fa, f8a3d86, 9e8cbaa)
- [880] - Make Mocha browserifyable ([boneskull] via 524862b)
- [2121] - Update [glob](https://npmjs.com/package/glob) to v3.2.11 ([astorije] via 7920fc4)
- [2126] - Fix dupe error messages in stack trace filter ([Turbo87] via 4301caa)
- [2109] - Fix certain diffs when objects cannot be coerced into primitives ([joshlory] via 61fbb7f)
- [1827] - Fix TWBS/`mocha.css` collisions ([irnc] via 0543798)
- [1760], [1936] - Fix `this.skip()` in HTML reporter ([mislav] via cb4248b)
- [2115] - Fix exceptions thrown from hooks in HTML reporter ([danielstjules] via e290bc0)
- [2089] - Handle Symbol values in `util.stringify()` ([ryym] via ea61d05)
- [2097] - Fix diff for objects overriding `Object.prototype.hasOwnProperty` ([mantoni] via b20fdfe)
- [2101] - Properly handle non-string "messages" thrown from assertion libraries ([jkimbo] via 9c41051)
- [2124] - Update [growl](https://npmjs.com/package/growl) ([benjamine] via 9ae6a85)
- [2162], [2205] - JSDoc fixes ([OlegTsyba] via 8031f20, [ScottFreeCode] via f83b1d9)
- [2132] - Remove Growl-related cruft ([julienw] via 00d6469)
- [2172] - Add [OpenCollective](https://opencollective.com) badge, sponsors & backers ([xdamman], [boneskull] via caee94f)
- [1841] - Add new logo, banner assets ([dasilvacontin] via 00fd0e1)
- [2214] - Update `README.md` header ([dasilvacontin] via c0f9be2)
- [2236] - Better checks for Node.js v0.8 compatibility in CI ([dasilvacontin] via ba5637d)
- [2239] - Add Node.js v6.x to CI matrix ([boneskull] via 3904da4)

[880]: https://github.com/mochajs/mocha/issues/880
[1841]: https://github.com/mochajs/mocha/pull/1841
[2239]: https://github.com/mochajs/mocha/issues/2239
[2153]: https://github.com/mochajs/mocha/pull/2153
[2214]: https://github.com/mochajs/mocha/pull/2214
[2236]: https://github.com/mochajs/mocha/pull/2236
[2079]: https://github.com/mochajs/mocha/issues/2079
[2231]: https://github.com/mochajs/mocha/pull/2231
[2089]: https://github.com/mochajs/mocha/issues/2089
[2097]: https://github.com/mochajs/mocha/pull/2097
[1760]: https://github.com/mochajs/mocha/issues/1760
[1936]: https://github.com/mochajs/mocha/issues/1936
[2115]: https://github.com/mochajs/mocha/pull/2115
[1827]: https://github.com/mochajs/mocha/pull/1827
[2101]: https://github.com/mochajs/mocha/pull/2101
[2124]: https://github.com/mochajs/mocha/pull/2124
[2109]: https://github.com/mochajs/mocha/issues/2109
[2162]: https://github.com/mochajs/mocha/pull/2162
[2132]: https://github.com/mochajs/mocha/issues/2132
[2126]: https://github.com/mochajs/mocha/issues/2126
[2121]: https://github.com/mochajs/mocha/issues/2121
[2205]: https://github.com/mochajs/mocha/pull/2205
[2172]: https://github.com/mochajs/mocha/pull/2172
[xdamman]: https://github.com/xdamman
[Turbo87]: https://github.com/Turbo87
[OlegTsyba]: https://github.com/OlegTsyba
[ryym]: https://github.com/ryym
[mantoni]: https://github.com/mantoni
[mislav]: https://github.com/mislav
[irnc]: https://github.com/irnc
[jkimbo]: https://github.com/jkimbo
[benjamine]: https://github.com/benjamine
[joshlory]: https://github.com/joshlory
[julienw]: https://github.com/julienw
[ScottFreeCode]: https://github.com/ScottFreeCode
[astorije]: https://github.com/astorije
[dasilvacontin]: https://github.com/dasilvacontin

3.3.0

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.

:tada: Enhancements

- [2659]: Adds support for loading reporter from an absolute or relative path ([sul4bh])
- [2769]: Support `--inspect-brk` on command-line ([igwejk])

:bug: Fixes

- [2662]: Replace unicode chars w/ hex codes in HTML reporter ([rotemdan])

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

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

[boneskull]: https://github.com/boneskull
[c089]: https://github.com/c089
[coderbyheart]: https://github.com/coderbyheart
[craigtaub]: https://github.com/craigtaub
[epallerols]: https://github.com/epallerols
[greenkeeper]: https://github.com/greenkeeper
[igwejk]: https://github.com/igwejk
[kt3k]: https://github.com/kt3k
[lamby]: https://github.com/lamby
[Munter]: https://github.com/Munter
[rotemdan]: https://github.com/rotemdan
[seppevs]: https://github.com/seppevs
[sul4bh]: https://github.com/sul4bh

[2470]: https://github.com/mochajs/mocha/pull/2470
[2542]: https://github.com/mochajs/mocha/issues/2542
[2621]: https://github.com/mochajs/mocha/pull/2621
[2625]: https://github.com/mochajs/mocha/pull/2625
[2648]: https://github.com/mochajs/mocha/pull/2648
[2653]: https://github.com/mochajs/mocha/pull/2653
[2659]: https://github.com/mochajs/mocha/pull/2659
[2660]: https://github.com/mochajs/mocha/pull/2660
[2662]: https://github.com/mochajs/mocha/pull/2662
[2669]: https://github.com/mochajs/mocha/pull/2669
[2670]: https://github.com/mochajs/mocha/pull/2670
[2672]: https://github.com/mochajs/mocha/pull/2672
[2675]: https://github.com/mochajs/mocha/pull/2675
[2678]: https://github.com/mochajs/mocha/pull/2678
[2680]: https://github.com/mochajs/mocha/pull/2680
[2690]: https://github.com/mochajs/mocha/pull/2690
[2691]: https://github.com/mochajs/mocha/pull/2691
[2698]: https://github.com/mochajs/mocha/pull/2698
[2699]: https://github.com/mochajs/mocha/pull/2699
[2701]: https://github.com/mochajs/mocha/pull/2701
[2703]: https://github.com/mochajs/mocha/pull/2703
[2727]: https://github.com/mochajs/mocha/pull/2727
[2769]: https://github.com/mochajs/mocha/pull/2769
[2773]: https://github.com/mochajs/mocha/pull/2773

3.2.0

:newspaper: News

Mocha is now a JS Foundation Project!

Mocha is proud to have joined the [JS Foundation](https://js.foundation). For more information, [read the announcement](https://js.foundation/announcements/2016/10/17/Linux-Foundation-Unites-JavaScript-Community-Open-Web-Development/).

Contributor License Agreement

Under the foundation, all contributors to Mocha must sign the [JS Foundation CLA](https://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](https://github.com/mochajs/mocha/blob/master/LICENSE).

:bug: Bug Fix

- [2535]: Fix crash when `--watch` encounters broken symlinks ([villesau])
- [2593]: Fix (old) regression; incorrect symbol shown in `list` reporter ([Aldaviva])
- [2584]: Fix potential error when running XUnit reporter ([vobujs])

:tada: Enhancement

- [2294]: Improve timeout error messaging ([jeversmann], [boneskull])
- [2520]: Add info about `--inspect` flag to CLI help ([ughitsaaron])

:nut_and_bolt: Other

- [2570]: Use [karma-mocha](https://npmjs.com/package/karma-mocha) proper ([boneskull])
- Licenses updated to reflect new copyright, add link to license and browser matrix to `README.md` ([boneskull], [ScottFreeCode], [dasilvacontin])

[2294]: https://github.com/mochajs/mocha/issues/2294
[2535]: https://github.com/mochajs/mocha/issues/2535
[2520]: https://github.com/mochajs/mocha/pull/2520
[2593]: https://github.com/mochajs/mocha/pull/2593
[2584]: https://github.com/mochajs/mocha/issues/2584
[2570]: https://github.com/mochajs/mocha/issues/2570
[Aldaviva]: https://github.com/Aldaviva
[jeversmann]: https://github.com/jeversmann
[ughitsaaron]: https://github.com/ughitsaaron
[villesau]: https://github.com/villesau
[vobujs]: https://github.com/vobujs

Thanks to all our contributors, sponsors and backers! Keep on the lookout for a public roadmap and new contribution guide coming soon.

3.1.2

:bug: Bug Fix

- [2528]: Recovery gracefully if an `Error`'s `stack` property isn't writable ([boneskull])

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

3.1.1

:bug: Bug Fix

- [1417]: Don't report `done()` was called multiple times when it wasn't ([frankleonrose])

:nut_and_bolt: Other

- [2490]: Lint with [semistandard](https://npmjs.com/package/semistandard) config ([makepanic])
- [2525]: Lint all `.js` files ([boneskull])
- [2524]: Provide workaround for developers unable to run browser tests on macOS Sierra ([boneskull])

[1417]: https://github.com/mochajs/mocha/issues/1417
[2490]: https://github.com/mochajs/mocha/issues/2490
[2525]: https://github.com/mochajs/mocha/issues/2525
[2524]: https://github.com/mochajs/mocha/issues/2524
[makepanic]: https://github.com/makepanic
[frankleonrose]: https://github.com/frankleonrose

3.1.0

:tada: Enhancement

- [2357]: Support `--inspect` on command-line ([simov])
- [2194]: Human-friendly error if no files are matched on command-line ([Munter])
- [1744]: Human-friendly error if a Suite has no callback (BDD/TDD only) ([anton])

:bug: Bug Fix

- [2488]: Fix case in which *variables beginning with lowercase "D"* may not have been reported properly as global leaks ([JustATrick]) :laughing:
- [2465]: Always halt execution in async function when `this.skip()` is called ([boneskull])
- [2445]: Exits with expected code 130 when `SIGINT` encountered; exit code can no longer rollover at 256 ([Munter])
- [2315]: Fix uncaught TypeError thrown from callback stack ([1999])
- Fix broken `only()`/`skip()` in IE7/IE8 ([boneskull])
- [2502]: Fix broken stack trace filter on Node.js under Windows ([boneskull])
- [2496]: Fix diff output for objects instantiated with `String` constructor ([more](https://youtrack.jetbrains.com/issue/WEB-23383)) ([boneskull])

[2496]: https://github.com/mochajs/mocha/issues/2496
[2502]: https://github.com/mochajs/mocha/issues/2502
[2315]: https://github.com/mochajs/mocha/issues/2315
[2445]: https://github.com/mochajs/mocha/pull/2445
[2465]: https://github.com/mochajs/mocha/issues/2465
[2488]: https://github.com/mochajs/mocha/issues/2488
[1744]: https://github.com/mochajs/mocha/issues/1744
[2194]: https://github.com/mochajs/mocha/issues/2194
[2357]: https://github.com/mochajs/mocha/issues/2357
[1999]: https://github.com/1999
[JustATrick]: https://github.com/JustATrick
[anton]: https://github.com/anton
[simov]: https://github.com/simov

Page 1 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.