šŸŒœ
šŸŒž
mocha

mocha

v10.0.0

simple, flexible, fun test framework

npm install mocha

README

Mocha test framework

ā˜•ļø Simple, flexible, fun JavaScript test framework for Node.js & The Browser ā˜•ļø

GitHub Actions Build Status Coverage Status FOSSA Status Gitter OpenCollective OpenCollective

NPM Version Node Version


Mocha Browser Support h/t SauceLabs

Backers

Become a backer and show your support to our open source project on our site.

backer

Sponsors

Does your company use Mocha? Ask your manager or marketing team if your company would be interested in supporting our project. Support will allow the maintainers to dedicate more time for maintenance and new features for everyone. Also, your company's logo will show on GitHub and on our site - who doesn't want a little extra exposure? Here's the info.

MochaJS Sponsor MochaJS Sponsor MochaJS Sponsor MochaJS Sponsor

Development

You might want to know that:

  • Mocha is one of the most-depended-upon modules on npm (source: libraries.io), and
  • Mocha is an independent open-source project, maintained exclusively by volunteers.

You might want to help:

Finally, come chat with the maintainers on Gitter if you want to help with:

  • Triaging issues, answering questions
  • Review, merging, and closing pull requests
  • Other project-maintenance-y things

License

Copyright 2011-2022 OpenJS Foundation and contributors. Licensed MIT.

FOSSA Status

Release Notes

10.0.0
By Juerg B. ā€¢ Published on May 1, 2022

10.0.0 / 2022-05-01

:boom: Breaking Changes

:nut_and_bolt: Other

Also thanks to @ea2305 and @SukkaW for improvements to our documentation.

9.2.2
By Juerg B. ā€¢ Published on March 11, 2022

9.2.2 / 2022-03-11

Please also note our announcements.

:bug: Fixes

:nut_and_bolt: Other

9.2.1
By Juerg B. ā€¢ Published on February 19, 2022

9.2.1 / 2022-02-19

Please also note our announcements.

:bug: Fixes

  • #4832: Loading of config files throws wrong error (@juergba)

  • #4799: Reporter: configurable maxDiffSize reporter-option (@norla)

9.2.0
By Juerg B. ā€¢ Published on January 24, 2022

9.2.0 / 2022-01-24

Please also note our announcements.

:tada: Enhancements

  • #4813: Parallel: assign each worker a worker-id (@forty)

:nut_and_bolt: Other

9.1.4
By Juerg B. ā€¢ Published on January 14, 2022

9.1.4 / 2022-01-14

Please also note our announcements.

:bug: Fixes

:nut_and_bolt: Other

9.1.3
By Juerg B. ā€¢ Published on October 15, 2021

9.1.3 / 2021-10-15

Please also note our announcements.

:bug: Fixes

:nut_and_bolt: Other

9.1.2
By Juerg B. ā€¢ Published on September 25, 2021

9.1.2 / 2021-09-25

Please also note our announcements.

:bug: Fixes

:nut_and_bolt: Other

9.1.1
By Juerg B. ā€¢ Published on August 28, 2021

9.1.1 / 2021-08-28

Please also note our announcements.

:bug: Fixes

9.1.0
By Juerg B. ā€¢ Published on August 20, 2021

9.1.0 / 2021-08-20

Please also note our announcements.

:tada: Enhancements

9.0.3
By Juerg B. ā€¢ Published on July 25, 2021

9.0.3 / 2021-07-25

:bug: Fixes

  • #4702: Error rethrow from cwd-relative path while loading .mocharc.js (@kirill-golovan)

  • #4688: Usage of custom interface in parallel mode (@juergba)

  • #4687: ESM: don't swallow MODULE_NOT_FOUND errors in case of type:module (@giltayar)

General

License
MIT
Typescript Types
Tree-shakeable
No

Popularity

GitHub Stargazers
21.7K
Community Interest
25K
Number of Forks
2,977

Maintenance

Commits
10/219/22015
Last Commit
Open Issues
243
Closed Issues
2,594
Open Pull Requests
43
Closed Pull Requests
824

Versions

Versions Released
10/219/2202
Latest Version Released
May 1, 2022
Current Tags
latest10.0.0
esm7.0.0-esm1
latest-66.2.3

Contributors

tj
tj
Commits: 867
boneskull
boneskull
Commits: 644
juergba
juergba
Commits: 133
travisjeffery
travisjeffery
Commits: 100
craigtaub
craigtaub
Commits: 74
Munter
Munter
Commits: 62
plroebuck
plroebuck
Commits: 46
outsideris
outsideris
Commits: 45
dasilvacontin
dasilvacontin
Commits: 43
danielstjules
danielstjules
Commits: 34
rauchg
rauchg
Commits: 29
ScottFreeCode
ScottFreeCode
Commits: 27
a8m
a8m
Commits: 19
XhmikosR
XhmikosR
Commits: 18
adomokos
adomokos
Commits: 13