{"name":"mocha","version":"12.0.2","keywords":["mocha","test","bdd","tdd","tap","testing","chai","assertion","ava","jest","tape","jasmine","playwright"],"author":{"url":"https://markwiemer.com/software/mocha","name":"Mark Wiemer"},"license":"MIT","_id":"mocha@12.0.2","maintainers":[{"name":"joshuakgoldberg","email":"npm@joshuakgoldberg.com"},{"name":"mark-wiemer","email":"markwiemer@outlook.com"}],"contributors":[{"name":"github-actions[bot]","email":"41898282+github-actions[bot]@users.noreply.github.com"}],"homepage":"https://mochajs.org/","bugs":{"url":"https://github.com/mochajs/mocha/issues/"},"bin":{"mocha":"bin/mocha.js"},"dist":{"shasum":"99d1e8ecee59364572be0a288db76aa49d4b212d","tarball":"http://registry-npm.ywwl.com/mocha/download/mocha-12.0.2.tgz","fileCount":74,"integrity":"sha512-SjAulGHxlMJLCD1bhvJBAiYwYxglydRzA9PDQ5MALq1oLRMMtIhxSQJ0olCFgA7c9YbTdxC0KOV0wl8JEDYVhA==","signatures":[{"sig":"MEUCIAXKfeoBLqFN0U9OyUGilugIX/lvl+KQbtLnnnS+MUzHAiEAqohXlXFUpPDbFlKdbf89yy99r7pKE5O3m7o81HbCUfg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCF2Uq8yP7n09SN00enygaLYWAA0QcQnhnr1bd5wJUPXQIgSlcOsYT6BKtlKjFFIEPPBBH96/GOG1VFimguq2QaG1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mocha@12.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1442530,"size":334351,"noattachment":false,"key":"/mocha/-/mocha-12.0.2.tgz"},"logo":"https://cldup.com/S9uQ-cOLYz.svg","main":"./index.js","type":"module","browser":{"fs":false,"path":false,"./index.js":"./browser-entry.js","supports-color":false,"./lib/cli/index.cjs":false,"./lib/nodejs/worker.cjs":false,"./lib/nodejs/esm-utils.cjs":false,"./lib/nodejs/serializer.js":false,"./lib/nodejs/file-unloader.js":false,"./lib/nodejs/buffered-worker-pool.cjs":false,"./lib/nodejs/parallel-buffered-runner.cjs":false,"./lib/nodejs/reporters/parallel-buffered.cjs":false},"discord":"https://discord.gg/KeDn2uXhER","engines":{"node":"^20.19.0 || >=22.12.0"},"gitHead":"70db1c70cfe8b6a35d3e1f6c099a614abb9ff137","scripts":{"tsc":"tsc","docs":"cd docs; npm run docs","lint":"run-p --aggregate-output --continue-on-error lint:*","test":"run-s lint test-node test-browser","build":"rollup -c ./rollup.config.js","clean":"rimraf mocha.js mocha.js.map","prelint":"npm run clean","version":"run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md","lint:code":"eslint . --max-warnings 0","lint:knip":"knip --cache","test-node":"run-s test-coverage-clean test-node:* test-coverage-generate","format:fix":"prettier --write .","test-smoke":"node ./bin/mocha.js --no-config test/smoke/smoke.spec.cjs","format:check":"prettier --check .","test-browser":"run-s clean build test-browser:*","test-node-run":"cross-env NODE_OPTIONS=--enable-source-maps nyc --no-clean --reporter=json node bin/mocha.js --forbid-only","lint:knip-docs":"cd docs && npm run lint:knip","prepublishOnly":"run-s clean build version","test-node:only":"run-p test-node:only:*","test-node:unit":"npm run -s test-node-run -- \"test/unit/**/*.spec.cjs\" \"test/node-unit/**/*.spec.{cjs,js}\"","test-node:jsapi":"node test/jsapi/index.js","test-node-run-only":"cross-env NODE_OPTIONS=--enable-source-maps nyc --no-clean --reporter=json node bin/mocha.js --no-forbid-only","test-node:requires":"npm run -s test-node-run -- --require coffeescript/register --require test/require/a.cjs --require test/require/b.coffee --require test/require/c.cjs --require test/require/d.coffee test/require/require.spec.cjs","test-coverage-clean":"rimraf .nyc_output coverage","test-node:reporters":"npm run -s test-node-run -- \"test/reporters/*.spec.{cjs,js}\"","lint:installed-check":"installed-check --engine-check --ignore-dev","test-node:interfaces":"run-p test-node:interfaces:*","test-node:integration":"run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/**/*.spec.cjs\"","test-coverage-generate":"nyc report --reporter=lcov --reporter=text","version:update-authors":"node scripts/update-authors.cjs","test-browser:playwright":"playwright test","test-node:interfaces:bdd":"npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec","test-node:interfaces:tdd":"npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec","test-node:only:globalBdd":"npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel","test-node:only:globalTdd":"npm run -s test-node-run-only -- --ui tdd test/only/global/tdd.spec --no-parallel","test-node:only:bddRequire":"npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel","version:linkify-changelog":"node scripts/linkify-changelog.js","pretest-browser:playwright":"playwright install chromium --with-deps","test-node:interfaces:qunit":"npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec","test-node:only:globalQunit":"npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.spec --no-parallel","test-browser:webpack-compat":"webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.cjs","test-node:integration:watch":"run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/options/watch.spec.cjs\"","test-node:interfaces:exports":"npm run -s test-node-run -- --ui exports test/interfaces/exports.spec"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b395132-63f6-427b-b3ca-59478c177906"}},"overrides":{"webdriverio":"^9.0.0","@types/eslint":"^9.6.1","@types/estree":"^1.0.7"},"notifyLogo":"https://ibin.co/4QuRuGjXvl36.png","repository":{"url":"git+https://github.com/mochajs/mocha.git","type":"git"},"_npmVersion":"12.0.2","description":"Classic, reliable, trusted test framework for Node.js and the browser","directories":{"lib":"./lib","test":"./test"},"_nodeVersion":"24.20.0","dependencies":{"ms":"^2.1.3","diff":"^9.0.0","glob":"^13.0.0","debug":"^4.3.5","js-yaml":"^5.0.0","chokidar":"^5.0.0","minimatch":"^10.2.2","picocolors":"^1.1.1","workerpool":"^10.0.0","browser-stdout":"^1.3.1","find-up-simple":"^1.0.1","is-path-inside":"^4.0.0","supports-color":"^8.1.1","strip-json-comments":"^5.0.3","is-unicode-supported":"^0.1.0","serialize-javascript":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^18.0.0","chai":"^6.0.0","knip":"^6.0.0","sinon":"^22.0.0","eslint":"^10.0.0","remark":"^15.0.0","rimraf":"^6.0.0","rollup":"^4.52.3","semver":"^7.7.2","globals":"^17.0.0","ps-list":"^9.0.0","webpack":"^5.67.0","prettier":"3.9.5","cross-env":"^10.0.0","@eslint/js":"^10.0.0","rewiremock":"^3.14.3","typescript":"^5.8.3","unexpected":"^13.2.1","@types/node":"^24.0.0","webpack-cli":"^7.0.2","coffeescript":"^2.6.1","npm-run-all2":"^8.0.0","remark-github":"^12.0.0","eslint-plugin-n":"^18.0.0","installed-check":"^10.0.0","@eslint/markdown":"^8.0.0","@playwright/test":"^1.60.0","unexpected-sinon":"^11.1.0","@rollup/plugin-json":"^6.1.0","remark-inline-links":"^7.0.0","@rollup/plugin-alias":"^6.0.0","@test/esm-only-loader":"./test/compiler-fixtures/esm-only-loader","@rollup/plugin-commonjs":"^29.0.0","unexpected-eventemitter":"^2.4.0","rollup-plugin-visualizer":"^6.0.5","@rollup/plugin-node-resolve":"^16.0.3","rollup-plugin-polyfill-node":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/mocha_12.0.2_1789655045013_0.030037033006953706","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <img src=\"docs/src/components/mocha-logo.svg\" alt=\"Mocha test framework logo\"/>\n</p>\n\n<p align=\"center\">☕️ Classic, reliable, trusted test framework for Node.js and the browser ☕️</p>\n\n<div align=\"center\">\n\n<a href=\"https://www.npmjs.com/package/mocha\"><img src=\"https://img.shields.io/npm/v/mocha.svg\" alt=\"npm version 12.0.3\"></a> <!-- x-release-please-version -->\n<a href=\"https://github.com/mochajs/mocha\"><img src=\"https://img.shields.io/node/v/mocha.svg\" alt=\"Node Version\"></a>\n[![GitHub Actions Build Status](https://github.com/mochajs/mocha/actions/workflows/mocha.yml/badge.svg)](https://github.com/mochajs/mocha/actions/workflows/mocha.yml)\n<a href=\"https://codecov.io/gh/mochajs/mocha\"><img src=\"https://codecov.io/gh/mochajs/mocha/branch/main/graph/badge.svg\" alt=\"Codecov Coverage Status\"></a>\n\n</div>\n\n<div align=\"center\">\n\n<a href=\"https://discord.gg/KeDn2uXhER\"><img alt=\"Chat - Discord\" src=\"https://img.shields.io/badge/Chat-Discord-5765F2.svg\" /></a>\n<a href=\"https://github.com/mochajs/mocha#sponsors\"><img src=\"https://opencollective.com/mochajs/tiers/sponsors/badge.svg\" alt=\"Open Collective Sponsors\"></a>\n<a href=\"https://github.com/mochajs/mocha#backers\"><img src=\"https://opencollective.com/mochajs/tiers/backers/badge.svg\" alt=\"Open Collective Backers\"></a>\n[![Collective Funds Guidelines v0.1](https://img.shields.io/badge/collective_funds_guidelines-v0.1-D8E8D4?style=flat&labelColor=3A6457)](https://github.com/collective-funds/guidelines)\n\n</div>\n\n## Links\n\n- **[Documentation](https://mochajs.org)**\n- **[Release Notes / History / Changes](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)**\n- [Code of Conduct](https://github.com/mochajs/mocha/blob/main/.github/CODE_OF_CONDUCT.md)\n- [Contributing](https://github.com/mochajs/mocha/blob/main/.github/CONTRIBUTING.md)\n- [Development](https://github.com/mochajs/mocha/blob/main/.github/DEVELOPMENT.md)\n- [Discord](https://discord.gg/KeDn2uXhER) (ask questions here!)\n- [Issue Tracker](https://github.com/mochajs/mocha/issues)\n\n## Backers\n\n[Become a backer](https://opencollective.com/mochajs) and show your support to our open source project on [our site](https://mochajs.org/#backers).\n\n<a href=\"https://opencollective.com/mochajs\"><img alt=\"Mocha's backers on Open Collective\" src=\"https://opencollective.com/mochajs/tiers/backers.svg?limit=30&button=false&avatarHeight=46&width=750\"></a>\n\n## Sponsors\n\nDoes your company use Mocha? Ask your manager or marketing team if your company would be interested in supporting our project.\nSupport will allow the maintainers to dedicate more time for maintenance and new features for everyone.\nAlso, your company's logo will show [on GitHub](https://github.com/mochajs/mocha#readme) and on [our site](https://mochajs.org#sponsors) - who doesn't want a little extra exposure?\n[Here's the info](https://opencollective.com/mochajs).\n\n[![MochaJS Sponsor](https://opencollective.com/mochajs/tiers/sponsors/0/avatar)](https://opencollective.com/mochajs/tiers/sponsors/0/website)\n[![MochaJS Sponsor](https://opencollective.com/mochajs/tiers/sponsors/1/avatar)](https://opencollective.com/mochajs/tiers/sponsors/1/website)\n[![MochaJS Sponsor](https://opencollective.com/mochajs/tiers/sponsors/2/avatar)](https://opencollective.com/mochajs/tiers/sponsors/2/website)\n[![MochaJS Sponsor](https://opencollective.com/mochajs/tiers/sponsors/3/avatar)](https://opencollective.com/mochajs/tiers/sponsors/3/website)\n\n## Development\n\nYou might want to know that:\n\n- Mocha is one of the _most-depended-upon_ modules on npm (source: [libraries.io](https://libraries.io/search?order=desc&platforms=NPM&sort=dependents_count)), and\n- Mocha is an _independent_ open-source project, maintained exclusively by volunteers.\n\nYou might want to help:\n\n- New to contributing to Mocha? Check out this list of [good first issues](https://github.com/mochajs/mocha/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)\n- Mocha could use a hand with [these issues](https://github.com/mochajs/mocha/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)\n- The [maintainer's handbook](https://github.com/mochajs/mocha/blob/main/MAINTAINERS.md) explains how things get done\n\nFinally, come [chat with the maintainers on Discord](https://discord.gg/KeDn2uXhER) if you want to help with:\n\n- Triaging issues, answering questions\n- Review, merging, and closing pull requests\n- Other project-maintenance-y things\n\n## License\n\nCopyright 2011-2026 OpenJS Foundation and contributors. Licensed [MIT](https://github.com/mochajs/mocha/blob/main/LICENSE).\n","publish_time":1789655045099,"_cnpm_publish_time":1789655045099,"dist-tags":{"latest":"12.0.3","next":"12.0.0-rc.6"}}