FindSoftware

Mocha

JavaScript test framework that runs test suites on Node.js and in the browser.

Mocha is a JavaScript test framework. Tests are written as describe and it blocks in test files and run with the mocha command, which the getting started page installs as a development dependency and starts with npx. It runs on Node.js and in the browser. The same page shows a test script in package.json for starting it in a project.

Worth knowing

The getting started page states a minimum Node.js version for the current major.

Identity

Status
Active
Maintainer
OpenJS Foundation4
Maintained by
Foundation
First release
20115

Rendering and deploy

Install with
npm7

Releases

Current major version
1210
Last release
2026-10-0110

Adoption

GitHub stars
22,9122
npm downloads a week
14,596,3558
Contributors
4239

Why these figures do not compare

Sources

  1. 2026-11-16: links
    mochajs.org/
  2. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/mochajs/mocha
  3. 2026-11-16: links, Categories
    github.com/mochajs/mocha/blob/main/README.md
  4. 2026-11-16: Maintainer, License model
    github.com/mochajs/mocha/blob/main/LICENSE
  5. 2026-11-16: First release
    registry.npmjs.org/mocha
  6. 2026-11-16: Runtime
    github.com/mochajs/mocha/blob/main/docs/src/content/docs/index.mdx
  7. 2026-11-16: Install with
    github.com/mochajs/mocha/blob/main/docs/src/content/docs/getting-started.mdx
  8. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/mocha
  9. 2026-11-16: Contributors
    api.github.com/repos/mochajs/mocha/contributors?per_page=1
  10. 2026-11-16: Current major version, Last release
    github.com/mochajs/mocha/releases/tag/v12.0.3

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON