# @web/test-runner-mocha

> Mocha test framework for Web Test Runner

Latest version **1.0.0** (published 2026-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @web/test-runner-mocha
pnpm add @web/test-runner-mocha
yarn add @web/test-runner-mocha
bun add @web/test-runner-mocha
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-07-07 |
| First published | 2020-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 549.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2448 |
| Author | modern-web |
| Maintainers | d4kmor, passle, jorenbroekema, bennyp, larsdenbakker, westbrook, modern-web |
| Keywords | web, test, runner, testrunner, mocha, framework |

## Links

- npm: https://www.npmjs.com/package/@web/test-runner-mocha
- Repository: https://github.com/modernweb-dev/web
- Homepage: https://github.com/modernweb-dev/web/tree/master/packages/test-runner-mocha
- Issues: https://github.com/modernweb-dev/web/issues
- npm.io page: https://npm.io/package/@web/test-runner-mocha

## Dependencies (1)

- [@web/test-runner-core](https://npm.io/package/@web/test-runner-core.md) ^1.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2026-07-07
- 0.0.0-canary-20240219104536 (canary) — 2024-02-19
- 0.0.0-canary-20240219104126 — 2024-02-19
- 0.0.0-canary-20240212171943 — 2024-02-12
- 0.0.0-canary-20240105101412 — 2024-01-05
- 0.0.0-canary-20240105095248 — 2024-01-05
- 0.0.0-canary-20240105093823 — 2024-01-05
- 0.0.0-canary-20240105092607 — 2024-01-05
- 0.0.0-canary-20240105091725 — 2024-01-05
- 0.0.0-canary-20231122093600 — 2023-11-22
- 0.9.0 — 2023-11-01
- 0.8.2 — 2023-10-31
- 0.8.1 — 2023-04-23
- 0.8.0 — 2023-04-21
- 0.0.0-canary-20230420104136 — 2023-04-20
- … 46 more at https://npm.io/package/@web/test-runner-mocha/versions

## README

# Test Runner Mocha

Test framework implementation of [Mocha](https://mochajs.org/) for web test runner.

See [our website](https://modern-web.dev/docs/test-runner/test-frameworks/mocha/) for full documentation.

---
_Source: https://npm.io/package/@web/test-runner-mocha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
