-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
package.json
208 lines (208 loc) · 7.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"name": "mocha",
"version": "11.0.2",
"type": "commonjs",
"description": "simple, flexible, fun test framework",
"keywords": [
"mocha",
"test",
"bdd",
"tdd",
"tap",
"testing",
"chai",
"assertion",
"ava",
"jest",
"tape",
"jasmine",
"karma"
],
"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",
"bin": {
"mocha": "./bin/mocha.js",
"_mocha": "./bin/_mocha"
},
"directories": {
"lib": "./lib",
"test": "./test"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"scripts": {
"build": "rollup -c ./rollup.config.js",
"clean": "rimraf mocha.js mocha.js.map",
"docs-clean": "rimraf docs/_site docs/api",
"docs-watch": "eleventy --serve",
"docs:api": "jsdoc -c jsdoc.conf.json",
"docs:site": "eleventy",
"docs": "run-s docs-clean docs:*",
"format:eslint": "eslint --fix . \"bin/*\"",
"format:prettier": "prettier --write \"!(package*).json\" \".*.json\" \"lib/**/*.json\" \"*.yml\"",
"format": "run-s format:*",
"lint:installed-check": "installed-check --engine-check",
"lint:knip": "knip --cache",
"lint:code": "eslint . \"bin/*\" --max-warnings 0",
"lint:markdown": "markdownlint \"*.md\" \"docs/**/*.md\" \".github/*.md\" \"lib/**/*.md\" \"test/**/*.md\" \"example/**/*.md\" -i CHANGELOG.md",
"lint": "run-p lint:*",
"prepublishOnly": "run-s clean build",
"test-browser-run": "cross-env NODE_PATH=. karma start ./karma.conf.js --single-run",
"test-browser:reporters:bdd": "cross-env MOCHA_TEST=bdd npm run -s test-browser-run",
"test-browser:reporters:esm": "cross-env MOCHA_TEST=esm npm run -s test-browser-run",
"test-browser:reporters:qunit": "cross-env MOCHA_TEST=qunit npm run -s test-browser-run",
"test-browser:reporters:tdd": "cross-env MOCHA_TEST=tdd npm run -s test-browser-run",
"test-browser:reporters": "run-s test-browser:reporters:*",
"test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js",
"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": "nyc --no-clean --reporter=json node bin/mocha.js",
"test-node-run": "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.js\"",
"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.js\"",
"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",
"test-node:unit": "npm run -s test-node-run -- \"test/unit/*.spec.js\" \"test/node-unit/**/*.spec.js\"",
"test-node": "run-s test-coverage-clean test-node:* test-coverage-generate",
"test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js",
"test": "run-s lint test-node test-browser",
"version:linkify-changelog": "node scripts/linkify-changelog.mjs",
"version:update-authors": "node scripts/update-authors.js",
"version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md"
},
"dependencies": {
"ansi-colors": "^4.1.3",
"browser-stdout": "^1.3.1",
"chokidar": "^3.5.3",
"debug": "^4.3.5",
"diff": "^5.2.0",
"escape-string-regexp": "^4.0.0",
"find-up": "^5.0.0",
"glob": "^10.4.5",
"he": "^1.2.0",
"js-yaml": "^4.1.0",
"log-symbols": "^4.1.0",
"minimatch": "^5.1.6",
"ms": "^2.1.3",
"serialize-javascript": "^6.0.2",
"strip-json-comments": "^3.1.1",
"supports-color": "^8.1.1",
"workerpool": "^6.5.1",
"yargs": "^16.2.0",
"yargs-parser": "^20.2.9",
"yargs-unparser": "^2.0.0"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.0",
"@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
"@eslint/js": "^8.56.0",
"@mocha/docdash": "^4.0.1",
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.0.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"chai": "^4.3.4",
"coffeescript": "^2.6.1",
"cross-env": "^7.0.2",
"eslint": "^8.56.0",
"fail-on-errors-webpack-plugin": "^3.0.0",
"fs-extra": "^10.0.0",
"globals": "^13.24.0",
"installed-check": "^9.3.0",
"jsdoc": "^3.6.7",
"jsdoc-ts-utils": "^2.0.1",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sauce-launcher": "^4.3.6",
"knip": "^5.27.0",
"markdown-it": "^12.3.2",
"markdown-it-anchor": "^8.4.1",
"markdown-it-attrs": "^4.1.3",
"markdown-it-emoji": "^2.0.0",
"markdown-it-prism": "^2.2.2",
"markdown-toc": "^1.2.0",
"markdownlint-cli": "^0.30.0",
"needle": "^2.5.0",
"npm-run-all2": "^6.2.0",
"nyc": "^15.1.0",
"pidtree": "^0.5.0",
"prettier": "^2.4.1",
"remark": "^14.0.2",
"remark-github": "^11.2.2",
"remark-inline-links": "^6.0.1",
"rewiremock": "^3.14.3",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-polyfill-node": "^0.8.0",
"rollup-plugin-visualizer": "^5.6.0",
"sinon": "^9.0.3",
"strip-ansi": "^6.0.0",
"unexpected": "^11.14.0",
"unexpected-eventemitter": "^2.2.0",
"unexpected-map": "^2.0.0",
"unexpected-set": "^3.0.0",
"unexpected-sinon": "^10.11.2",
"uslug": "^1.0.4",
"webpack": "^5.67.0",
"webpack-cli": "^4.9.1"
},
"files": [
"bin/*mocha*",
"lib/**/*.{js,html,json}",
"index.js",
"mocha.css",
"mocha.js",
"mocha.js.map",
"browser-entry.js"
],
"browser": {
"./index.js": "./browser-entry.js",
"fs": false,
"path": false,
"supports-color": false,
"./lib/nodejs/buffered-worker-pool.js": false,
"./lib/nodejs/esm-utils.js": false,
"./lib/nodejs/file-unloader.js": false,
"./lib/nodejs/parallel-buffered-runner.js": false,
"./lib/nodejs/serializer.js": false,
"./lib/nodejs/worker.js": false,
"./lib/nodejs/reporters/parallel-buffered.js": false,
"./lib/cli/index.js": false
},
"prettier": {
"arrowParens": "avoid",
"bracketSpacing": false,
"endOfLine": "auto",
"singleQuote": true,
"trailingComma": "none"
},
"overrides": {
"webdriverio": "^7.33.0"
}
}