mocha 8.1.3 → 8.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.
- package/CHANGELOG.md +57 -1
- package/README.md +2 -0
- package/lib/cli/lookup-files.js +31 -31
- package/lib/cli/run-helpers.js +21 -56
- package/lib/cli/run.js +5 -9
- package/lib/cli/watch-run.js +49 -30
- package/lib/errors.js +129 -20
- package/lib/hook.js +14 -9
- package/lib/mocha.js +252 -55
- package/lib/nodejs/buffered-worker-pool.js +1 -3
- package/lib/nodejs/parallel-buffered-runner.js +156 -18
- package/lib/nodejs/reporters/parallel-buffered.js +61 -29
- package/lib/nodejs/serializer.js +14 -6
- package/lib/nodejs/worker.js +9 -12
- package/lib/plugin-loader.js +286 -0
- package/lib/reporters/json-stream.js +2 -1
- package/lib/reporters/json.js +1 -0
- package/lib/runnable.js +6 -0
- package/lib/runner.js +208 -103
- package/lib/suite.js +34 -15
- package/lib/test.js +6 -2
- package/lib/utils.js +121 -65
- package/mocha.js +6622 -2939
- package/mocha.js.map +1 -1
- package/package.json +18 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mocha",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "simple, flexible, fun test framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mocha",
|
|
@@ -48,13 +48,15 @@
|
|
|
48
48
|
"prepublishOnly": "nps test clean build",
|
|
49
49
|
"start": "nps",
|
|
50
50
|
"test": "nps test",
|
|
51
|
-
"version": "nps version"
|
|
51
|
+
"version": "nps version",
|
|
52
|
+
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
55
|
+
"@ungap/promise-all-settled": "1.1.2",
|
|
54
56
|
"ansi-colors": "4.1.1",
|
|
55
57
|
"browser-stdout": "1.3.1",
|
|
56
|
-
"chokidar": "3.4.
|
|
57
|
-
"debug": "4.
|
|
58
|
+
"chokidar": "3.4.3",
|
|
59
|
+
"debug": "4.2.0",
|
|
58
60
|
"diff": "4.0.2",
|
|
59
61
|
"escape-string-regexp": "4.0.0",
|
|
60
62
|
"find-up": "5.0.0",
|
|
@@ -65,17 +67,16 @@
|
|
|
65
67
|
"log-symbols": "4.0.0",
|
|
66
68
|
"minimatch": "3.0.4",
|
|
67
69
|
"ms": "2.1.2",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"supports-color": "7.1.0",
|
|
70
|
+
"nanoid": "3.1.12",
|
|
71
|
+
"serialize-javascript": "5.0.1",
|
|
72
|
+
"strip-json-comments": "3.1.1",
|
|
73
|
+
"supports-color": "7.2.0",
|
|
73
74
|
"which": "2.0.2",
|
|
74
75
|
"wide-align": "1.1.3",
|
|
75
|
-
"workerpool": "6.0.
|
|
76
|
+
"workerpool": "6.0.2",
|
|
76
77
|
"yargs": "13.3.2",
|
|
77
78
|
"yargs-parser": "13.1.2",
|
|
78
|
-
"yargs-unparser": "
|
|
79
|
+
"yargs-unparser": "2.0.0"
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
82
|
"@11ty/eleventy": "^0.11.0",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"coveralls": "^3.1.0",
|
|
99
100
|
"cross-env": "^7.0.2",
|
|
100
101
|
"cross-spawn": "^7.0.3",
|
|
101
|
-
"eslint": "^
|
|
102
|
+
"eslint": "^7.8.1",
|
|
102
103
|
"eslint-config-prettier": "^6.11.0",
|
|
103
104
|
"eslint-config-semistandard": "^15.0.1",
|
|
104
105
|
"eslint-config-standard": "^14.1.1",
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
"needle": "^2.5.0",
|
|
130
131
|
"nps": "^5.10.0",
|
|
131
132
|
"nyc": "^15.1.0",
|
|
133
|
+
"pidtree": "^0.5.0",
|
|
132
134
|
"prettier": "^1.19.1",
|
|
133
135
|
"remark": "^12.0.1",
|
|
134
136
|
"remark-github": "^9.0.1",
|
|
@@ -137,7 +139,7 @@
|
|
|
137
139
|
"rewiremock": "^3.14.3",
|
|
138
140
|
"rimraf": "^3.0.2",
|
|
139
141
|
"rollup": "^2.23.1",
|
|
140
|
-
"rollup-plugin-node-
|
|
142
|
+
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
141
143
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
142
144
|
"rollup-plugin-visualizer": "^4.1.0",
|
|
143
145
|
"sinon": "^9.0.3",
|
|
@@ -145,8 +147,11 @@
|
|
|
145
147
|
"svgo": "^1.3.2",
|
|
146
148
|
"through2": "^4.0.2",
|
|
147
149
|
"to-vfile": "^6.1.0",
|
|
150
|
+
"touch": "^3.1.0",
|
|
148
151
|
"unexpected": "^11.14.0",
|
|
149
152
|
"unexpected-eventemitter": "^2.2.0",
|
|
153
|
+
"unexpected-map": "^2.0.0",
|
|
154
|
+
"unexpected-set": "^3.0.0",
|
|
150
155
|
"unexpected-sinon": "^10.11.2",
|
|
151
156
|
"update-notifier": "^4.1.0",
|
|
152
157
|
"uslug": "^1.0.4",
|