| { |
| "name": "mocha", |
| "version": "12.0.0", |
| "type": "module", |
| "description": "Classic, reliable, trusted test framework for Node.js and the browser", |
| "keywords": [ |
| "mocha", |
| "test", |
| "bdd", |
| "tdd", |
| "tap", |
| "testing", |
| "chai", |
| "assertion", |
| "ava", |
| "jest", |
| "tape", |
| "jasmine", |
| "playwright" |
| ], |
| "author": "TJ Holowaychuk <tj@vision-media.ca>", |
| "license": "MIT", |
| "repository": { |
| "type": "git", |
| "url": "https://github.com/mochajs/mocha.git" |
| }, |
| "bugs": { |
| "url": "https://github.com/mochajs/mocha/issues/" |
| }, |
| "discord": "https://discord.gg/KeDn2uXhER", |
| "homepage": "https://mochajs.org/", |
| "logo": "https://cldup.com/S9uQ-cOLYz.svg", |
| "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png", |
| "main": "./index.js", |
| "bin": { |
| "mocha": "./bin/mocha.js" |
| }, |
| "directories": { |
| "lib": "./lib", |
| "test": "./test" |
| }, |
| "engines": { |
| "node": "^20.19.0 || >=22.12.0" |
| }, |
| "scripts": { |
| "build": "rollup -c ./rollup.config.js", |
| "clean": "rimraf mocha.js mocha.js.map", |
| "docs": "cd docs; npm run docs", |
| "format:check": "prettier --check .", |
| "format:fix": "prettier --write .", |
| "lint:installed-check": "installed-check --engine-check --ignore-dev", |
| "lint:knip": "knip --cache", |
| "lint:knip-docs": "cd docs && npm run lint:knip", |
| "lint:code": "eslint . --max-warnings 0", |
| "prelint": "npm run clean", |
| "lint": "run-p --aggregate-output --continue-on-error lint:*", |
| "prepublishOnly": "run-s clean build version", |
| "pretest-browser:playwright": "playwright install chromium --with-deps", |
| "test-browser:playwright": "playwright test", |
| "test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.cjs", |
| "test-browser": "run-s clean build test-browser:*", |
| "test-coverage-clean": "rimraf .nyc_output coverage", |
| "test-coverage-generate": "nyc report --reporter=lcov --reporter=text", |
| "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-run": "cross-env NODE_OPTIONS=--enable-source-maps nyc --no-clean --reporter=json node bin/mocha.js --forbid-only", |
| "test-node:integration": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/**/*.spec.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:bdd": "npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec", |
| "test-node:interfaces:exports": "npm run -s test-node-run -- --ui exports test/interfaces/exports.spec", |
| "test-node:interfaces:qunit": "npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec", |
| "test-node:interfaces:tdd": "npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec", |
| "test-node:interfaces": "run-p test-node:interfaces:*", |
| "test-node:jsapi": "node test/jsapi/index.js", |
| "test-node:only:bddRequire": "npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel", |
| "test-node:only:globalBdd": "npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel", |
| "test-node:only:globalQunit": "npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.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": "run-p test-node:only:*", |
| "test-node:reporters": "npm run -s test-node-run -- \"test/reporters/*.spec.{cjs,js}\"", |
| "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-node:unit": "npm run -s test-node-run -- \"test/unit/**/*.spec.cjs\" \"test/node-unit/**/*.spec.{cjs,js}\"", |
| "test-node": "run-s test-coverage-clean test-node:* test-coverage-generate", |
| "test-smoke": "node ./bin/mocha.js --no-config test/smoke/smoke.spec.cjs", |
| "test": "run-s lint test-node test-browser", |
| "tsc": "tsc", |
| "version:linkify-changelog": "node scripts/linkify-changelog.js", |
| "version:update-authors": "node scripts/update-authors.cjs", |
| "version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md" |
| }, |
| "dependencies": { |
| "browser-stdout": "^1.3.1", |
| "chokidar": "^5.0.0", |
| "debug": "^4.3.5", |
| "diff": "^9.0.0", |
| "find-up": "^5.0.0", |
| "glob": "^13.0.0", |
| "is-path-inside": "^3.0.3", |
| "is-unicode-supported": "^0.1.0", |
| "js-yaml": "^5.0.0", |
| "minimatch": "^10.2.2", |
| "ms": "^2.1.3", |
| "picocolors": "^1.1.1", |
| "serialize-javascript": "^7.0.2", |
| "strip-json-comments": "^5.0.3", |
| "supports-color": "^8.1.1", |
| "workerpool": "^10.0.0" |
| }, |
| "devDependencies": { |
| "@eslint/js": "^10.0.0", |
| "@eslint/markdown": "^8.0.0", |
| "@playwright/test": "^1.60.0", |
| "@rollup/plugin-alias": "^6.0.0", |
| "@rollup/plugin-commonjs": "^29.0.0", |
| "@rollup/plugin-json": "^6.1.0", |
| "@rollup/plugin-node-resolve": "^16.0.3", |
| "@test/esm-only-loader": "./test/compiler-fixtures/esm-only-loader", |
| "@types/node": "^24.0.0", |
| "chai": "^6.0.0", |
| "coffeescript": "^2.6.1", |
| "cross-env": "^10.0.0", |
| "eslint": "^10.0.0", |
| "eslint-plugin-n": "^18.0.0", |
| "globals": "^17.0.0", |
| "installed-check": "^10.0.0", |
| "knip": "^6.0.0", |
| "npm-run-all2": "^8.0.0", |
| "nyc": "^18.0.0", |
| "prettier": "3.9.5", |
| "ps-list": "^9.0.0", |
| "remark": "^15.0.0", |
| "remark-github": "^12.0.0", |
| "remark-inline-links": "^7.0.0", |
| "rewiremock": "^3.14.3", |
| "rimraf": "^6.0.0", |
| "rollup": "^4.52.3", |
| "rollup-plugin-polyfill-node": "^0.13.0", |
| "rollup-plugin-visualizer": "^6.0.5", |
| "semver": "^7.7.2", |
| "sinon": "^22.0.0", |
| "typescript": "^5.8.3", |
| "unexpected": "^13.2.1", |
| "unexpected-eventemitter": "^2.4.0", |
| "unexpected-sinon": "^11.1.0", |
| "webpack": "^5.67.0", |
| "webpack-cli": "^7.0.2" |
| }, |
| "files": [ |
| "bin/*mocha*", |
| "lib/**/*.html", |
| "lib/**/*.js", |
| "lib/**/*.json", |
| "lib/**/*.cjs", |
| "index.js", |
| "mocha.css", |
| "mocha.js", |
| "mocha.js.map", |
| "mocha.mjs", |
| "browser-entry.js" |
| ], |
| "browser": { |
| "./index.js": "./browser-entry.js", |
| "fs": false, |
| "path": false, |
| "supports-color": false, |
| "./lib/nodejs/buffered-worker-pool.cjs": false, |
| "./lib/nodejs/esm-utils.cjs": false, |
| "./lib/nodejs/file-unloader.cjs": false, |
| "./lib/nodejs/parallel-buffered-runner.cjs": false, |
| "./lib/nodejs/serializer.js": false, |
| "./lib/nodejs/worker.cjs": false, |
| "./lib/nodejs/reporters/parallel-buffered.cjs": false, |
| "./lib/cli/index.cjs": false |
| }, |
| "overrides": { |
| "@types/eslint": "^9.6.1", |
| "@types/estree": "^1.0.7", |
| "webdriverio": "^9.0.0" |
| } |
| } |