mocha 9.1.0 → 9.1.4

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 (46) 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 +9 -3
  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/{esm-utils.js → nodejs/esm-utils.js} +18 -3
  21. package/lib/reporters/base.js +18 -21
  22. package/lib/reporters/doc.js +4 -4
  23. package/lib/reporters/dot.js +5 -5
  24. package/lib/reporters/html.js +12 -12
  25. package/lib/reporters/json-stream.js +4 -4
  26. package/lib/reporters/json.js +7 -7
  27. package/lib/reporters/landing.js +5 -5
  28. package/lib/reporters/list.js +5 -5
  29. package/lib/reporters/markdown.js +5 -5
  30. package/lib/reporters/min.js +1 -1
  31. package/lib/reporters/nyan.js +16 -16
  32. package/lib/reporters/progress.js +3 -3
  33. package/lib/reporters/spec.js +6 -6
  34. package/lib/reporters/tap.js +17 -17
  35. package/lib/reporters/xunit.js +9 -9
  36. package/lib/runnable.js +21 -21
  37. package/lib/runner.js +44 -47
  38. package/lib/stats-collector.js +7 -7
  39. package/lib/suite.js +46 -75
  40. package/lib/test.js +5 -5
  41. package/lib/utils.js +19 -46
  42. package/mocha-es2018.js +443 -486
  43. package/mocha.js +1457 -1032
  44. package/mocha.js.map +1 -1
  45. package/package.json +39 -40
  46. package/CHANGELOG.md +0 -998
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "9.1.0",
3
+ "version": "9.1.4",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
@@ -56,7 +56,7 @@
56
56
  "ansi-colors": "4.1.1",
57
57
  "browser-stdout": "1.3.1",
58
58
  "chokidar": "3.5.2",
59
- "debug": "4.3.1",
59
+ "debug": "4.3.2",
60
60
  "diff": "5.0.0",
61
61
  "escape-string-regexp": "4.0.0",
62
62
  "find-up": "5.0.0",
@@ -67,59 +67,56 @@
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.1.25",
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
75
  "workerpool": "6.1.5",
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",
81
+ "@11ty/eleventy": "^0.12.1",
82
+ "@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
83
+ "@babel/eslint-parser": "^7.15.4",
84
84
  "@babel/preset-env": "^7.14.8",
85
- "@mocha/docdash": "^3.0.1",
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.1.0",
91
+ "assetgraph-builder": "^8.2.0",
92
92
  "autoprefixer": "^9.8.6",
93
- "babel-eslint": "^10.1.0",
94
- "canvas": "^2.6.1",
93
+ "canvas": "^2.8.0",
95
94
  "chai": "^4.2.0",
96
95
  "coffee-script": "^1.12.7",
97
96
  "configstore": "^5.0.1",
98
- "core-js": "^3.6.5",
99
- "coveralls": "^3.1.0",
97
+ "core-js": "^3.16.3",
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
109
  "fs-extra": "^9.0.1",
113
110
  "husky": "^4.2.5",
114
- "hyperlink": "^4.5.2",
115
- "jsdoc": "^3.6.5",
116
- "jsdoc-ts-utils": "^1.1.2",
117
- "karma": "^5.1.1",
111
+ "hyperlink": "^4.7.0",
112
+ "jsdoc": "^3.6.7",
113
+ "jsdoc-ts-utils": "^2.0.1",
114
+ "karma": "^6.3.4",
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
- "karma-sauce-launcher": "^4.3.4",
119
+ "karma-sauce-launcher": "^4.3.6",
123
120
  "lint-staged": "^10.2.11",
124
121
  "markdown-it": "^11.0.0",
125
122
  "markdown-it-anchor": "^5.3.0",
@@ -132,11 +129,11 @@
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.1",
135
+ "remark-github": "^11.1.1",
136
+ "remark-inline-links": "^6.0.0",
140
137
  "requirejs": "^2.3.6",
141
138
  "rewiremock": "^3.14.3",
142
139
  "rimraf": "^3.0.2",
@@ -158,9 +155,9 @@
158
155
  "update-notifier": "^4.1.0",
159
156
  "uslug": "^1.0.4",
160
157
  "uuid": "^8.3.0",
161
- "watchify": "^3.11.1",
162
- "webpack": "^4.44.1",
163
- "webpack-cli": "^3.3.12"
158
+ "watchify": "^4.0.0",
159
+ "webpack": "^5.59.1",
160
+ "webpack-cli": "^4.9.1"
164
161
  },
165
162
  "files": [
166
163
  "bin/*mocha",
@@ -176,22 +173,24 @@
176
173
  "browser": {
177
174
  "./index.js": "./browser-entry.js",
178
175
  "./lib/nodejs/growl.js": "./lib/browser/growl.js",
179
- "./lib/esm-utils.js": false,
180
176
  "fs": false,
181
177
  "path": false,
182
178
  "supports-color": false,
183
- "./lib/nodejs/serializer.js": false,
184
- "./lib/nodejs/worker.js": false,
185
179
  "./lib/nodejs/buffered-worker-pool.js": false,
180
+ "./lib/nodejs/esm-utils.js": false,
181
+ "./lib/nodejs/file-unloader.js": false,
186
182
  "./lib/nodejs/parallel-buffered-runner.js": false,
183
+ "./lib/nodejs/serializer.js": false,
184
+ "./lib/nodejs/worker.js": false,
187
185
  "./lib/nodejs/reporters/parallel-buffered.js": false,
188
- "./lib/nodejs/file-unloader.js": false,
189
186
  "./lib/cli/index.js": false
190
187
  },
191
188
  "prettier": {
192
- "singleQuote": true,
189
+ "arrowParens": "avoid",
193
190
  "bracketSpacing": false,
194
- "endOfLine": "auto"
191
+ "endOfLine": "auto",
192
+ "singleQuote": true,
193
+ "trailingComma": "none"
195
194
  },
196
195
  "gitter": "https://gitter.im/mochajs/mocha",
197
196
  "husky": {