package.json 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. {
  2. "name": "mocha",
  3. "version": "11.7.5",
  4. "type": "commonjs",
  5. "description": "simple, flexible, fun test framework",
  6. "keywords": [
  7. "mocha",
  8. "test",
  9. "bdd",
  10. "tdd",
  11. "tap",
  12. "testing",
  13. "chai",
  14. "assertion",
  15. "ava",
  16. "jest",
  17. "tape",
  18. "jasmine",
  19. "karma"
  20. ],
  21. "author": "TJ Holowaychuk <tj@vision-media.ca>",
  22. "license": "MIT",
  23. "repository": {
  24. "type": "git",
  25. "url": "https://github.com/mochajs/mocha.git"
  26. },
  27. "bugs": {
  28. "url": "https://github.com/mochajs/mocha/issues/"
  29. },
  30. "discord": "https://discord.gg/KeDn2uXhER",
  31. "homepage": "https://mochajs.org/",
  32. "logo": "https://cldup.com/S9uQ-cOLYz.svg",
  33. "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png",
  34. "bin": {
  35. "mocha": "./bin/mocha.js",
  36. "_mocha": "./bin/_mocha"
  37. },
  38. "directories": {
  39. "lib": "./lib",
  40. "test": "./test"
  41. },
  42. "engines": {
  43. "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
  44. },
  45. "scripts": {
  46. "build": "rollup -c ./rollup.config.js",
  47. "clean": "rimraf mocha.js mocha.js.map",
  48. "docs-clean": "rimraf docs/_site docs/api",
  49. "docs-watch": "eleventy --serve",
  50. "docs:api": "jsdoc -c jsdoc.conf.json",
  51. "docs:build": "eleventy",
  52. "docs:build-new": "cd docs-next && npm i && npm run build-with-old",
  53. "docs:preview": "http-server docs/_site -o",
  54. "docs": "run-s docs-clean docs:api docs:build docs:build-new",
  55. "format:eslint": "eslint --fix . \"bin/*\"",
  56. "format:prettier": "prettier --write \"!(package*).json\" \".*.json\" \"lib/**/*.json\" \"*.yml\"",
  57. "format": "run-s format:*",
  58. "lint:installed-check": "installed-check --engine-check",
  59. "lint:knip": "knip --cache",
  60. "lint:code": "eslint . \"bin/*\" --max-warnings 0",
  61. "lint:markdown": "markdownlint \"*.md\" \"docs/**/*.md\" \".github/*.md\" \"lib/**/*.md\" \"test/**/*.md\" \"example/**/*.md\" -i CHANGELOG.md",
  62. "lint": "run-p lint:*",
  63. "prepublishOnly": "run-s clean build version",
  64. "test-browser-run": "cross-env NODE_PATH=. karma start ./karma.conf.js --single-run",
  65. "test-browser:reporters:bdd": "cross-env MOCHA_TEST=bdd npm run -s test-browser-run",
  66. "test-browser:reporters:esm": "cross-env MOCHA_TEST=esm npm run -s test-browser-run",
  67. "test-browser:reporters:qunit": "cross-env MOCHA_TEST=qunit npm run -s test-browser-run",
  68. "test-browser:reporters:tdd": "cross-env MOCHA_TEST=tdd npm run -s test-browser-run",
  69. "test-browser:reporters": "run-s test-browser:reporters:*",
  70. "test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js",
  71. "test-browser": "run-s clean build test-browser:*",
  72. "test-coverage-clean": "rimraf .nyc_output coverage",
  73. "test-coverage-generate": "nyc report --reporter=lcov --reporter=text",
  74. "test-node-run-only": "nyc --no-clean --reporter=json node bin/mocha.js",
  75. "test-node-run": "nyc --no-clean --reporter=json node bin/mocha.js --forbid-only",
  76. "test-node-run:bare": "node bin/mocha.js --grep @bare",
  77. "test-node:integration": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/**/*.spec.js\"",
  78. "test-node:integration:bare": "run-s clean build && npm run -s test-node-run:bare -- --parallel --timeout 10000 --slow 3750 \"test/integration/**/*.spec.js\"",
  79. "test-node:integration:watch": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/options/watch.spec.js\"",
  80. "test-node:interfaces:bdd": "npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec",
  81. "test-node:interfaces:exports": "npm run -s test-node-run -- --ui exports test/interfaces/exports.spec",
  82. "test-node:interfaces:qunit": "npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec",
  83. "test-node:interfaces:tdd": "npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec",
  84. "test-node:interfaces": "run-p test-node:interfaces:*",
  85. "test-node:jsapi": "node test/jsapi/index.js",
  86. "test-node:only:bddRequire": "npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel",
  87. "test-node:only:globalBdd": "npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel",
  88. "test-node:only:globalQunit": "npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.spec --no-parallel",
  89. "test-node:only:globalTdd": "npm run -s test-node-run-only -- --ui tdd test/only/global/tdd.spec --no-parallel",
  90. "test-node:only": "run-p test-node:only:*",
  91. "test-node:reporters": "npm run -s test-node-run -- \"test/reporters/*.spec.js\"",
  92. "test-node:requires": "npm run -s test-node-run -- --require coffeescript/register --require test/require/a.js --require test/require/b.coffee --require test/require/c.js --require test/require/d.coffee test/require/require.spec.js",
  93. "test-node:unit": "npm run -s test-node-run -- \"test/unit/*.spec.js\" \"test/node-unit/**/*.spec.js\"",
  94. "test-node": "run-s test-coverage-clean test-node:* test-coverage-generate",
  95. "test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js",
  96. "test": "run-s lint test-node test-browser",
  97. "tsc": "tsc",
  98. "version:linkify-changelog": "node scripts/linkify-changelog.mjs",
  99. "version:update-authors": "node scripts/update-authors.js",
  100. "version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md"
  101. },
  102. "dependencies": {
  103. "browser-stdout": "^1.3.1",
  104. "chokidar": "^4.0.1",
  105. "debug": "^4.3.5",
  106. "diff": "^7.0.0",
  107. "escape-string-regexp": "^4.0.0",
  108. "find-up": "^5.0.0",
  109. "glob": "^10.4.5",
  110. "he": "^1.2.0",
  111. "is-path-inside": "^3.0.3",
  112. "js-yaml": "^4.1.0",
  113. "log-symbols": "^4.1.0",
  114. "minimatch": "^9.0.5",
  115. "ms": "^2.1.3",
  116. "picocolors": "^1.1.1",
  117. "serialize-javascript": "^6.0.2",
  118. "strip-json-comments": "^3.1.1",
  119. "supports-color": "^8.1.1",
  120. "workerpool": "^9.2.0",
  121. "yargs": "^17.7.2",
  122. "yargs-parser": "^21.1.1",
  123. "yargs-unparser": "^2.0.0"
  124. },
  125. "devDependencies": {
  126. "@11ty/eleventy": "^1.0.0",
  127. "@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
  128. "@eslint/js": "^8.56.0",
  129. "@mocha/docdash": "^4.0.1",
  130. "@rollup/plugin-alias": "^5.1.1",
  131. "@rollup/plugin-commonjs": "^21.0.2",
  132. "@rollup/plugin-json": "^4.1.0",
  133. "@rollup/plugin-multi-entry": "^4.0.1",
  134. "@rollup/plugin-node-resolve": "^13.1.3",
  135. "@types/node": "^22.15.3",
  136. "@types/yargs": "^17.0.33",
  137. "@test/esm-only-loader": "./test/compiler-fixtures/esm-only-loader",
  138. "chai": "^4.3.4",
  139. "coffeescript": "^2.6.1",
  140. "cross-env": "^7.0.2",
  141. "eslint": "^8.56.0",
  142. "eslint-plugin-n": "^17.15.1",
  143. "fail-on-errors-webpack-plugin": "^3.0.0",
  144. "globals": "^13.24.0",
  145. "http-server": "^14.1.1",
  146. "installed-check": "^9.3.0",
  147. "jsdoc": "^3.6.7",
  148. "jsdoc-ts-utils": "^2.0.1",
  149. "karma": "^6.4.2",
  150. "karma-chrome-launcher": "^3.2.0",
  151. "karma-mocha": "^2.0.1",
  152. "karma-mocha-reporter": "^2.2.5",
  153. "karma-sauce-launcher": "^4.3.6",
  154. "knip": "^5.61.3",
  155. "markdown-it": "^12.3.2",
  156. "markdown-it-anchor": "^8.4.1",
  157. "markdown-it-attrs": "^4.1.3",
  158. "markdown-it-emoji": "^2.0.0",
  159. "markdown-it-prism": "^2.2.2",
  160. "markdown-toc": "^1.2.0",
  161. "markdownlint-cli": "^0.30.0",
  162. "needle": "^2.5.0",
  163. "npm-run-all2": "^6.2.0",
  164. "nyc": "^15.1.0",
  165. "pidtree": "^0.5.0",
  166. "prettier": "^2.4.1",
  167. "remark": "^14.0.2",
  168. "remark-github": "^11.2.2",
  169. "remark-inline-links": "^6.0.1",
  170. "rewiremock": "^3.14.3",
  171. "rimraf": "^3.0.2",
  172. "rollup": "^2.70.1",
  173. "rollup-plugin-node-globals": "^1.4.0",
  174. "rollup-plugin-polyfill-node": "^0.8.0",
  175. "rollup-plugin-visualizer": "^5.6.0",
  176. "semver": "^7.7.2",
  177. "sinon": "^9.0.3",
  178. "typescript": "^5.8.3",
  179. "unexpected": "^11.14.0",
  180. "unexpected-eventemitter": "^2.2.0",
  181. "unexpected-map": "^2.0.0",
  182. "unexpected-set": "^3.0.0",
  183. "unexpected-sinon": "^10.11.2",
  184. "uslug": "^1.0.4",
  185. "webpack": "^5.67.0",
  186. "webpack-cli": "^4.9.1"
  187. },
  188. "files": [
  189. "bin/*mocha*",
  190. "lib/**/*.{js,html,json}",
  191. "index.js",
  192. "mocha.css",
  193. "mocha.js",
  194. "mocha.js.map",
  195. "browser-entry.js"
  196. ],
  197. "browser": {
  198. "./index.js": "./browser-entry.js",
  199. "fs": false,
  200. "path": false,
  201. "supports-color": false,
  202. "./lib/nodejs/buffered-worker-pool.js": false,
  203. "./lib/nodejs/esm-utils.js": false,
  204. "./lib/nodejs/file-unloader.js": false,
  205. "./lib/nodejs/parallel-buffered-runner.js": false,
  206. "./lib/nodejs/serializer.js": false,
  207. "./lib/nodejs/worker.js": false,
  208. "./lib/nodejs/reporters/parallel-buffered.js": false,
  209. "./lib/cli/index.js": false
  210. },
  211. "prettier": {
  212. "arrowParens": "avoid",
  213. "bracketSpacing": false,
  214. "endOfLine": "auto",
  215. "singleQuote": true,
  216. "trailingComma": "none"
  217. },
  218. "overrides": {
  219. "@types/eslint": "^9.6.1",
  220. "@types/estree": "^1.0.7",
  221. "webdriverio": "^7.33.0"
  222. }
  223. }