mocha 9.1.1 → 9.2.0

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 (47) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/browser-entry.js +27 -20
  4. package/lib/browser/growl.js +5 -5
  5. package/lib/browser/parse-query.js +1 -1
  6. package/lib/browser/progress.js +6 -6
  7. package/lib/cli/one-and-dones.js +1 -2
  8. package/lib/cli/run-helpers.js +1 -1
  9. package/lib/cli/run.js +1 -1
  10. package/lib/cli/watch-run.js +3 -6
  11. package/lib/context.js +5 -5
  12. package/lib/errors.js +1 -1
  13. package/lib/hook.js +2 -2
  14. package/lib/interfaces/bdd.js +23 -20
  15. package/lib/interfaces/common.js +7 -7
  16. package/lib/interfaces/exports.js +1 -1
  17. package/lib/interfaces/qunit.js +7 -7
  18. package/lib/interfaces/tdd.js +9 -9
  19. package/lib/mocha.js +57 -67
  20. package/lib/nodejs/buffered-worker-pool.js +17 -1
  21. package/lib/{esm-utils.js → nodejs/esm-utils.js} +18 -3
  22. package/lib/reporters/base.js +18 -21
  23. package/lib/reporters/doc.js +4 -4
  24. package/lib/reporters/dot.js +5 -5
  25. package/lib/reporters/html.js +12 -12
  26. package/lib/reporters/json-stream.js +4 -4
  27. package/lib/reporters/json.js +7 -7
  28. package/lib/reporters/landing.js +5 -5
  29. package/lib/reporters/list.js +5 -5
  30. package/lib/reporters/markdown.js +5 -5
  31. package/lib/reporters/min.js +1 -1
  32. package/lib/reporters/nyan.js +16 -16
  33. package/lib/reporters/progress.js +3 -3
  34. package/lib/reporters/spec.js +6 -6
  35. package/lib/reporters/tap.js +17 -17
  36. package/lib/reporters/xunit.js +9 -9
  37. package/lib/runnable.js +21 -21
  38. package/lib/runner.js +44 -47
  39. package/lib/stats-collector.js +7 -7
  40. package/lib/suite.js +44 -73
  41. package/lib/test.js +4 -4
  42. package/lib/utils.js +19 -46
  43. package/mocha-es2018.js +435 -492
  44. package/mocha.js +1545 -1050
  45. package/mocha.js.map +1 -1
  46. package/package.json +50 -52
  47. package/CHANGELOG.md +0 -1004
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
@@ -55,100 +55,96 @@
55
55
  "@ungap/promise-all-settled": "1.1.2",
56
56
  "ansi-colors": "4.1.1",
57
57
  "browser-stdout": "1.3.1",
58
- "chokidar": "3.5.2",
59
- "debug": "4.3.1",
58
+ "chokidar": "3.5.3",
59
+ "debug": "4.3.3",
60
60
  "diff": "5.0.0",
61
61
  "escape-string-regexp": "4.0.0",
62
62
  "find-up": "5.0.0",
63
- "glob": "7.1.7",
63
+ "glob": "7.2.0",
64
64
  "growl": "1.10.5",
65
65
  "he": "1.2.0",
66
66
  "js-yaml": "4.1.0",
67
67
  "log-symbols": "4.1.0",
68
68
  "minimatch": "3.0.4",
69
69
  "ms": "2.1.3",
70
- "nanoid": "3.1.23",
70
+ "nanoid": "3.2.0",
71
71
  "serialize-javascript": "6.0.0",
72
72
  "strip-json-comments": "3.1.1",
73
73
  "supports-color": "8.1.1",
74
74
  "which": "2.0.2",
75
- "wide-align": "1.1.3",
76
- "workerpool": "6.1.5",
75
+ "workerpool": "6.2.0",
77
76
  "yargs": "16.2.0",
78
77
  "yargs-parser": "20.2.4",
79
78
  "yargs-unparser": "2.0.0"
80
79
  },
81
80
  "devDependencies": {
82
- "@11ty/eleventy": "^0.11.0",
83
- "@11ty/eleventy-plugin-inclusive-language": "^1.0.0",
84
- "@babel/preset-env": "^7.14.8",
85
- "@mocha/docdash": "^3.0.1",
81
+ "@11ty/eleventy": "^0.12.1",
82
+ "@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
83
+ "@babel/eslint-parser": "^7.16.5",
84
+ "@babel/preset-env": "^7.16.11",
85
+ "@mocha/docdash": "^4.0.0",
86
86
  "@rollup/plugin-babel": "^5.1.0",
87
87
  "@rollup/plugin-commonjs": "^14.0.0",
88
88
  "@rollup/plugin-json": "^4.1.0",
89
89
  "@rollup/plugin-multi-entry": "^3.0.1",
90
90
  "@rollup/plugin-node-resolve": "^8.4.0",
91
- "assetgraph-builder": "^8.2.0",
91
+ "assetgraph-builder": "^9.0.0",
92
92
  "autoprefixer": "^9.8.6",
93
- "babel-eslint": "^10.1.0",
94
- "canvas": "^2.8.0",
95
- "chai": "^4.2.0",
93
+ "canvas": "^2.9.0",
94
+ "chai": "^4.3.4",
96
95
  "coffee-script": "^1.12.7",
97
96
  "configstore": "^5.0.1",
98
- "core-js": "^3.16.3",
97
+ "core-js": "^3.20.3",
99
98
  "coveralls": "^3.1.1",
100
99
  "cross-env": "^7.0.2",
101
- "cross-spawn": "^7.0.3",
102
- "eslint": "^7.8.1",
103
- "eslint-config-prettier": "^6.11.0",
104
- "eslint-config-semistandard": "^15.0.1",
105
- "eslint-config-standard": "^14.1.1",
106
- "eslint-plugin-import": "^2.22.0",
107
- "eslint-plugin-node": "^11.0.0",
108
- "eslint-plugin-prettier": "^3.1.4",
109
- "eslint-plugin-promise": "^4.2.1",
110
- "eslint-plugin-standard": "^4.0.1",
100
+ "eslint": "^7.32.0",
101
+ "eslint-config-prettier": "^8.3.0",
102
+ "eslint-config-semistandard": "^16.0.0",
103
+ "eslint-config-standard": "^16.0.3",
104
+ "eslint-plugin-import": "^2.24.2",
105
+ "eslint-plugin-node": "^11.1.0",
106
+ "eslint-plugin-prettier": "^4.0.0",
107
+ "eslint-plugin-promise": "^5.1.0",
111
108
  "fail-on-errors-webpack-plugin": "^3.0.0",
112
- "fs-extra": "^9.0.1",
109
+ "fs-extra": "^10.0.0",
113
110
  "husky": "^4.2.5",
114
- "hyperlink": "^4.7.0",
115
- "jsdoc": "^3.6.5",
116
- "jsdoc-ts-utils": "^1.1.2",
117
- "karma": "^6.3.4",
111
+ "hyperlink": "^5.0.4",
112
+ "jsdoc": "^3.6.7",
113
+ "jsdoc-ts-utils": "^2.0.1",
114
+ "karma": "^6.3.11",
118
115
  "karma-chrome-launcher": "^3.1.0",
119
116
  "karma-mocha": "^2.0.1",
120
117
  "karma-mocha-reporter": "^2.2.5",
121
118
  "karma-requirejs": "^1.1.0",
122
119
  "karma-sauce-launcher": "^4.3.6",
123
120
  "lint-staged": "^10.2.11",
124
- "markdown-it": "^11.0.0",
125
- "markdown-it-anchor": "^5.3.0",
126
- "markdown-it-attrs": "^3.0.3",
127
- "markdown-it-emoji": "^1.4.0",
128
- "markdown-it-prism": "^2.1.1",
121
+ "markdown-it": "^12.3.2",
122
+ "markdown-it-anchor": "^8.4.1",
123
+ "markdown-it-attrs": "^4.1.3",
124
+ "markdown-it-emoji": "^2.0.0",
125
+ "markdown-it-prism": "^2.2.2",
129
126
  "markdown-toc": "^1.2.0",
130
- "markdownlint-cli": "^0.23.2",
127
+ "markdownlint-cli": "^0.30.0",
131
128
  "needle": "^2.5.0",
132
129
  "nps": "^5.10.0",
133
130
  "nyc": "^15.1.0",
134
131
  "pidtree": "^0.5.0",
135
- "prettier": "^1.19.1",
132
+ "prettier": "^2.4.1",
136
133
  "regenerator-runtime": "0.13.7",
137
- "remark": "^12.0.1",
138
- "remark-github": "^9.0.1",
139
- "remark-inline-links": "^4.0.0",
134
+ "remark": "^14.0.2",
135
+ "remark-github": "^11.2.2",
136
+ "remark-inline-links": "^6.0.1",
140
137
  "requirejs": "^2.3.6",
141
138
  "rewiremock": "^3.14.3",
142
139
  "rimraf": "^3.0.2",
143
- "rollup": "^2.23.1",
140
+ "rollup": "^2.66.0",
144
141
  "rollup-plugin-node-globals": "^1.4.0",
145
142
  "rollup-plugin-node-polyfills": "^0.2.1",
146
- "rollup-plugin-visualizer": "^4.1.0",
143
+ "rollup-plugin-visualizer": "^5.5.4",
147
144
  "sinon": "^9.0.3",
148
145
  "strip-ansi": "^6.0.0",
149
146
  "svgo": "^1.3.2",
150
147
  "through2": "^4.0.2",
151
- "to-vfile": "^6.1.0",
152
148
  "touch": "^3.1.0",
153
149
  "unexpected": "^11.14.0",
154
150
  "unexpected-eventemitter": "^2.2.0",
@@ -159,8 +155,8 @@
159
155
  "uslug": "^1.0.4",
160
156
  "uuid": "^8.3.0",
161
157
  "watchify": "^4.0.0",
162
- "webpack": "^4.44.1",
163
- "webpack-cli": "^3.3.12"
158
+ "webpack": "^5.67.0",
159
+ "webpack-cli": "^4.9.1"
164
160
  },
165
161
  "files": [
166
162
  "bin/*mocha",
@@ -176,22 +172,24 @@
176
172
  "browser": {
177
173
  "./index.js": "./browser-entry.js",
178
174
  "./lib/nodejs/growl.js": "./lib/browser/growl.js",
179
- "./lib/esm-utils.js": false,
180
175
  "fs": false,
181
176
  "path": false,
182
177
  "supports-color": false,
183
- "./lib/nodejs/serializer.js": false,
184
- "./lib/nodejs/worker.js": false,
185
178
  "./lib/nodejs/buffered-worker-pool.js": false,
179
+ "./lib/nodejs/esm-utils.js": false,
180
+ "./lib/nodejs/file-unloader.js": false,
186
181
  "./lib/nodejs/parallel-buffered-runner.js": false,
182
+ "./lib/nodejs/serializer.js": false,
183
+ "./lib/nodejs/worker.js": false,
187
184
  "./lib/nodejs/reporters/parallel-buffered.js": false,
188
- "./lib/nodejs/file-unloader.js": false,
189
185
  "./lib/cli/index.js": false
190
186
  },
191
187
  "prettier": {
192
- "singleQuote": true,
188
+ "arrowParens": "avoid",
193
189
  "bracketSpacing": false,
194
- "endOfLine": "auto"
190
+ "endOfLine": "auto",
191
+ "singleQuote": true,
192
+ "trailingComma": "none"
195
193
  },
196
194
  "gitter": "https://gitter.im/mochajs/mocha",
197
195
  "husky": {