mocha 9.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +1015 -0
  2. package/LICENSE +22 -0
  3. package/README.md +70 -0
  4. package/assets/growl/error.png +0 -0
  5. package/assets/growl/ok.png +0 -0
  6. package/bin/_mocha +10 -0
  7. package/bin/mocha +142 -0
  8. package/browser-entry.js +216 -0
  9. package/index.js +3 -0
  10. package/lib/browser/growl.js +169 -0
  11. package/lib/browser/highlight-tags.js +39 -0
  12. package/lib/browser/parse-query.js +24 -0
  13. package/lib/browser/progress.js +123 -0
  14. package/lib/browser/template.html +20 -0
  15. package/lib/cli/cli.js +89 -0
  16. package/lib/cli/collect-files.js +92 -0
  17. package/lib/cli/commands.js +13 -0
  18. package/lib/cli/config.js +105 -0
  19. package/lib/cli/index.js +3 -0
  20. package/lib/cli/init.js +36 -0
  21. package/lib/cli/lookup-files.js +145 -0
  22. package/lib/cli/node-flags.js +85 -0
  23. package/lib/cli/one-and-dones.js +69 -0
  24. package/lib/cli/options.js +261 -0
  25. package/lib/cli/run-helpers.js +243 -0
  26. package/lib/cli/run-option-metadata.js +117 -0
  27. package/lib/cli/run.js +379 -0
  28. package/lib/cli/watch-run.js +380 -0
  29. package/lib/context.js +86 -0
  30. package/lib/errors.js +563 -0
  31. package/lib/hook.js +89 -0
  32. package/lib/interfaces/bdd.js +111 -0
  33. package/lib/interfaces/common.js +193 -0
  34. package/lib/interfaces/exports.js +60 -0
  35. package/lib/interfaces/index.js +6 -0
  36. package/lib/interfaces/qunit.js +98 -0
  37. package/lib/interfaces/tdd.js +106 -0
  38. package/lib/mocha.js +1374 -0
  39. package/lib/mocharc.json +10 -0
  40. package/lib/nodejs/buffered-worker-pool.js +172 -0
  41. package/lib/nodejs/esm-utils.js +109 -0
  42. package/lib/nodejs/file-unloader.js +15 -0
  43. package/lib/nodejs/growl.js +137 -0
  44. package/lib/nodejs/parallel-buffered-runner.js +433 -0
  45. package/lib/nodejs/reporters/parallel-buffered.js +165 -0
  46. package/lib/nodejs/serializer.js +412 -0
  47. package/lib/nodejs/worker.js +151 -0
  48. package/lib/pending.js +16 -0
  49. package/lib/plugin-loader.js +286 -0
  50. package/lib/reporters/base.js +537 -0
  51. package/lib/reporters/doc.js +95 -0
  52. package/lib/reporters/dot.js +81 -0
  53. package/lib/reporters/html.js +390 -0
  54. package/lib/reporters/index.js +19 -0
  55. package/lib/reporters/json-stream.js +92 -0
  56. package/lib/reporters/json.js +162 -0
  57. package/lib/reporters/landing.js +116 -0
  58. package/lib/reporters/list.js +78 -0
  59. package/lib/reporters/markdown.js +112 -0
  60. package/lib/reporters/min.js +52 -0
  61. package/lib/reporters/nyan.js +276 -0
  62. package/lib/reporters/progress.js +104 -0
  63. package/lib/reporters/spec.js +99 -0
  64. package/lib/reporters/tap.js +293 -0
  65. package/lib/reporters/xunit.js +217 -0
  66. package/lib/runnable.js +476 -0
  67. package/lib/runner.js +1269 -0
  68. package/lib/stats-collector.js +83 -0
  69. package/lib/suite.js +695 -0
  70. package/lib/test.js +113 -0
  71. package/lib/utils.js +641 -0
  72. package/mocha-es2018.js +19816 -0
  73. package/mocha.css +325 -0
  74. package/mocha.js +30844 -0
  75. package/mocha.js.map +1 -0
  76. package/package.json +200 -0
package/package.json ADDED
@@ -0,0 +1,200 @@
1
+ {
2
+ "name": "mocha",
3
+ "version": "9.1.2",
4
+ "description": "simple, flexible, fun test framework",
5
+ "keywords": [
6
+ "mocha",
7
+ "test",
8
+ "bdd",
9
+ "tdd",
10
+ "tap",
11
+ "testing",
12
+ "chai",
13
+ "assertion",
14
+ "ava",
15
+ "jest",
16
+ "tape",
17
+ "jasmine",
18
+ "karma"
19
+ ],
20
+ "funding": {
21
+ "type": "opencollective",
22
+ "url": "https://opencollective.com/mochajs"
23
+ },
24
+ "author": "TJ Holowaychuk <tj@vision-media.ca>",
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/mochajs/mocha.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/mochajs/mocha/issues/"
32
+ },
33
+ "homepage": "https://mochajs.org/",
34
+ "logo": "https://cldup.com/S9uQ-cOLYz.svg",
35
+ "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png",
36
+ "bin": {
37
+ "mocha": "./bin/mocha",
38
+ "_mocha": "./bin/_mocha"
39
+ },
40
+ "directories": {
41
+ "lib": "./lib",
42
+ "test": "./test"
43
+ },
44
+ "engines": {
45
+ "node": ">= 12.0.0"
46
+ },
47
+ "scripts": {
48
+ "prepublishOnly": "nps test clean build",
49
+ "start": "nps",
50
+ "test": "nps test",
51
+ "version": "nps version",
52
+ "test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
53
+ },
54
+ "dependencies": {
55
+ "@ungap/promise-all-settled": "1.1.2",
56
+ "ansi-colors": "4.1.1",
57
+ "browser-stdout": "1.3.1",
58
+ "chokidar": "3.5.2",
59
+ "debug": "4.3.2",
60
+ "diff": "5.0.0",
61
+ "escape-string-regexp": "4.0.0",
62
+ "find-up": "5.0.0",
63
+ "glob": "7.1.7",
64
+ "growl": "1.10.5",
65
+ "he": "1.2.0",
66
+ "js-yaml": "4.1.0",
67
+ "log-symbols": "4.1.0",
68
+ "minimatch": "3.0.4",
69
+ "ms": "2.1.3",
70
+ "nanoid": "3.1.25",
71
+ "serialize-javascript": "6.0.0",
72
+ "strip-json-comments": "3.1.1",
73
+ "supports-color": "8.1.1",
74
+ "which": "2.0.2",
75
+ "workerpool": "6.1.5",
76
+ "yargs": "16.2.0",
77
+ "yargs-parser": "20.2.4",
78
+ "yargs-unparser": "2.0.0"
79
+ },
80
+ "devDependencies": {
81
+ "@11ty/eleventy": "^0.11.0",
82
+ "@11ty/eleventy-plugin-inclusive-language": "^1.0.0",
83
+ "@babel/eslint-parser": "^7.15.4",
84
+ "@babel/preset-env": "^7.14.8",
85
+ "@mocha/docdash": "^3.0.1",
86
+ "@rollup/plugin-babel": "^5.1.0",
87
+ "@rollup/plugin-commonjs": "^14.0.0",
88
+ "@rollup/plugin-json": "^4.1.0",
89
+ "@rollup/plugin-multi-entry": "^3.0.1",
90
+ "@rollup/plugin-node-resolve": "^8.4.0",
91
+ "assetgraph-builder": "^8.2.0",
92
+ "autoprefixer": "^9.8.6",
93
+ "canvas": "^2.8.0",
94
+ "chai": "^4.2.0",
95
+ "coffee-script": "^1.12.7",
96
+ "configstore": "^5.0.1",
97
+ "core-js": "^3.16.3",
98
+ "coveralls": "^3.1.1",
99
+ "cross-env": "^7.0.2",
100
+ "cross-spawn": "^7.0.3",
101
+ "eslint": "^7.32.0",
102
+ "eslint-config-prettier": "^8.3.0",
103
+ "eslint-config-semistandard": "^16.0.0",
104
+ "eslint-config-standard": "^16.0.3",
105
+ "eslint-plugin-import": "^2.24.2",
106
+ "eslint-plugin-node": "^11.1.0",
107
+ "eslint-plugin-prettier": "^4.0.0",
108
+ "eslint-plugin-promise": "^5.1.0",
109
+ "fail-on-errors-webpack-plugin": "^3.0.0",
110
+ "fs-extra": "^9.0.1",
111
+ "husky": "^4.2.5",
112
+ "hyperlink": "^4.7.0",
113
+ "jsdoc": "^3.6.5",
114
+ "jsdoc-ts-utils": "^1.1.2",
115
+ "karma": "^6.3.4",
116
+ "karma-chrome-launcher": "^3.1.0",
117
+ "karma-mocha": "^2.0.1",
118
+ "karma-mocha-reporter": "^2.2.5",
119
+ "karma-requirejs": "^1.1.0",
120
+ "karma-sauce-launcher": "^4.3.6",
121
+ "lint-staged": "^10.2.11",
122
+ "markdown-it": "^11.0.0",
123
+ "markdown-it-anchor": "^5.3.0",
124
+ "markdown-it-attrs": "^3.0.3",
125
+ "markdown-it-emoji": "^1.4.0",
126
+ "markdown-it-prism": "^2.1.1",
127
+ "markdown-toc": "^1.2.0",
128
+ "markdownlint-cli": "^0.23.2",
129
+ "needle": "^2.5.0",
130
+ "nps": "^5.10.0",
131
+ "nyc": "^15.1.0",
132
+ "pidtree": "^0.5.0",
133
+ "prettier": "^1.19.1",
134
+ "regenerator-runtime": "0.13.7",
135
+ "remark": "^12.0.1",
136
+ "remark-github": "^9.0.1",
137
+ "remark-inline-links": "^4.0.0",
138
+ "requirejs": "^2.3.6",
139
+ "rewiremock": "^3.14.3",
140
+ "rimraf": "^3.0.2",
141
+ "rollup": "^2.23.1",
142
+ "rollup-plugin-node-globals": "^1.4.0",
143
+ "rollup-plugin-node-polyfills": "^0.2.1",
144
+ "rollup-plugin-visualizer": "^4.1.0",
145
+ "sinon": "^9.0.3",
146
+ "strip-ansi": "^6.0.0",
147
+ "svgo": "^1.3.2",
148
+ "through2": "^4.0.2",
149
+ "to-vfile": "^6.1.0",
150
+ "touch": "^3.1.0",
151
+ "unexpected": "^11.14.0",
152
+ "unexpected-eventemitter": "^2.2.0",
153
+ "unexpected-map": "^2.0.0",
154
+ "unexpected-set": "^3.0.0",
155
+ "unexpected-sinon": "^10.11.2",
156
+ "update-notifier": "^4.1.0",
157
+ "uslug": "^1.0.4",
158
+ "uuid": "^8.3.0",
159
+ "watchify": "^4.0.0",
160
+ "webpack": "^4.44.1",
161
+ "webpack-cli": "^3.3.12"
162
+ },
163
+ "files": [
164
+ "bin/*mocha",
165
+ "assets/growl/*.png",
166
+ "lib/**/*.{js,html,json}",
167
+ "index.js",
168
+ "mocha.css",
169
+ "mocha.js",
170
+ "mocha.js.map",
171
+ "mocha-es2018.js",
172
+ "browser-entry.js"
173
+ ],
174
+ "browser": {
175
+ "./index.js": "./browser-entry.js",
176
+ "./lib/nodejs/growl.js": "./lib/browser/growl.js",
177
+ "fs": false,
178
+ "path": false,
179
+ "supports-color": false,
180
+ "./lib/nodejs/buffered-worker-pool.js": false,
181
+ "./lib/nodejs/esm-utils.js": false,
182
+ "./lib/nodejs/file-unloader.js": false,
183
+ "./lib/nodejs/parallel-buffered-runner.js": false,
184
+ "./lib/nodejs/serializer.js": false,
185
+ "./lib/nodejs/worker.js": false,
186
+ "./lib/nodejs/reporters/parallel-buffered.js": false,
187
+ "./lib/cli/index.js": false
188
+ },
189
+ "prettier": {
190
+ "singleQuote": true,
191
+ "bracketSpacing": false,
192
+ "endOfLine": "auto"
193
+ },
194
+ "gitter": "https://gitter.im/mochajs/mocha",
195
+ "husky": {
196
+ "hooks": {
197
+ "pre-commit": "lint-staged"
198
+ }
199
+ }
200
+ }