MCPcopy
hub / github.com/mochajs/mocha

github.com/mochajs/mocha @v11.7.7 sqlite

repository ↗ · DeepWiki ↗ · release v11.7.7 ↗
414 symbols 1,305 edges 449 files 153 documented · 37%
README

Mocha test framework logo

☕️ Simple, flexible, fun JavaScript test framework for Node.js & The Browser ☕️

NPM Version Node Version GitHub Actions Build Status Coverage Status

Chat - Discord OpenCollective Sponsors OpenCollective Backers Collective Funds Guidelines v0.1

Links

Backers

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

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 Discord if you want to help with:

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

License

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

Extension points exported contracts — how you extend this code

MochaOptions (Interface)
(no doc)
lib/types.d.ts
RunnerOptions (Interface)
(no doc)
lib/types.d.ts
MochaRootHookObject (Interface)
(no doc)
lib/types.d.ts
PluginDefinition (Interface)
(no doc)
lib/types.d.ts
FileCollectionOptions (Interface)
(no doc)
lib/types.d.ts

Core symbols most depended-on inside this repo

done
called by 500
lib/mocha.js
run
called by 142
lib/nodejs/buffered-worker-pool.js
before
called by 135
docs/example/async-dump.js
after
called by 82
docs/example/async-dump.js
createMockRunner
called by 73
test/reporters/helpers.js
runReporter
called by 73
test/reporters/helpers.js
beforeEach
called by 72
test/integration/fixtures/plugins/root-hooks/root-hook-defs-a.fixture.js
afterEach
called by 61
test/integration/fixtures/plugins/root-hooks/root-hook-defs-a.fixture.js

Shape

Function 324
Method 48
Class 20
Interface 20
Enum 2

Languages

TypeScript100%

Modules by API surface

lib/errors.js23 symbols
test/integration/helpers.js20 symbols
lib/types.d.ts20 symbols
lib/cli/watch-run.js17 symbols
lib/nodejs/serializer.js16 symbols
lib/nodejs/parallel-buffered-runner.js15 symbols
lib/runner.js13 symbols
lib/reporters/base.js12 symbols
lib/reporters/html.js10 symbols
lib/nodejs/buffered-worker-pool.js10 symbols
lib/utils.js9 symbols
lib/plugin-loader.js9 symbols

Dependencies from manifests, versioned

@11ty/eleventy1.0.0 · 1×
@11ty/eleventy-plugin-inclusive-language1.0.3 · 1×
@astrojs/check0.9.4 · 1×
@astrojs/starlight0.28.4 · 1×
@eslint/js8.56.0 · 1×
@mocha/docdash4.0.1 · 1×
@rollup/plugin-alias5.1.1 · 1×
@rollup/plugin-commonjs21.0.2 · 1×
@rollup/plugin-json4.1.0 · 1×
@rollup/plugin-multi-entry4.0.1 · 1×
@rollup/plugin-node-resolve13.1.3 · 1×
@test/esm-only-loader./test/compiler-fixt · 1×

For agents

$ claude mcp add mocha \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact