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