Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Mocha

Feature-rich JavaScript test framework for Node.js and browsers.

TestingNPM

GitHubWebsite

1. License

License from npm.

github.com/mochajs/mocha

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Mocha does

Feature-rich JavaScript test framework for Node.js and browsers.

Mocha popularity

74 / 100
Gid Score, #257 overall
14.6M
downloads a week, npm
22.9K
GitHub stars
26
agent projects use it
Mocha: downloads per weeknpm, mocha 14,576,585
Mocha: GitHub starsmochajs/mocha 22,907

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Mocha is used

  • Mocha is a dependency in 26 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.5% of the 4,867 JavaScript/TypeScript ones), #24 of 122 in testing.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 382; those are left out of every share on this page.
  • The most used alternative in our scan is Vitest (1,312 projects).
  • Projects that use it most often also use Chai (50.0%), ts-node (38.5%), glob (34.6%).

By coding agent

17 projects, 0.6%
13 projects, 0.4%
7 projects, 0.3%

Often used with

In 50.0% of its projects
In 38.5% of its projects
In 34.6% of its projects
In 34.6% of its projects
In 76.9% of its projects
In 23.1% of its projects
In 57.7% of its projects
In 38.5% of its projects

More about Mocha

Funding
  • Open Collective: https://opencollective.com/mochajs

See all

More in Testing

Alternatives

Mocha This page

MITGid 7414.6M/wk

Vitest

Next-generation testing framework powered by Vite with native ESM.

MITGid 86194M/wk

Jest

Delightful JavaScript testing framework with minimal configuration.

MITGid 8663.2M/wk

Nx Jest Plugin

Nx plugin providing Jest testing capabilities and executors for monorepo projects.

MITGid 664.5M/wk

Compare Mocha with another tool

Get started

Install it.

npm install mocha

No step-by-step start for Mocha yet: we have not written its hand-checked card.