mocha 11.0.0 → 11.0.1
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/lib/cli/lookup-files.js +9 -4
- package/lib/nodejs/parallel-buffered-runner.js +9 -9
- package/lib/runner.js +3 -3
- package/mocha.js +5 -5
- package/mocha.js.map +1 -1
- package/package.json +2 -2
package/lib/cli/lookup-files.js
CHANGED
|
@@ -87,10 +87,15 @@ module.exports = function lookupFiles(
|
|
|
87
87
|
debug('looking for files using glob pattern: %s', pattern);
|
|
88
88
|
}
|
|
89
89
|
files.push(
|
|
90
|
-
...glob
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
...glob
|
|
91
|
+
.sync(pattern, {
|
|
92
|
+
nodir: true,
|
|
93
|
+
windowsPathsNoEscape: true
|
|
94
|
+
})
|
|
95
|
+
// glob@8 and earlier sorted results in en; glob@9 depends on OS sorting.
|
|
96
|
+
// This preserves the older glob behavior.
|
|
97
|
+
// https://github.com/mochajs/mocha/pull/5250/files#r1840469747
|
|
98
|
+
.sort((a, b) => a.localeCompare(b, 'en'))
|
|
94
99
|
);
|
|
95
100
|
if (!files.length) {
|
|
96
101
|
throw createNoFilesMatchPatternError(
|
|
@@ -374,16 +374,16 @@ class ParallelBufferedRunner extends Runner {
|
|
|
374
374
|
* // this reporter needs proper object references when run in parallel mode
|
|
375
375
|
* class MyReporter() {
|
|
376
376
|
* constructor(runner) {
|
|
377
|
-
*
|
|
377
|
+
* runner.linkPartialObjects(true)
|
|
378
378
|
* .on(EVENT_SUITE_BEGIN, suite => {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
379
|
+
* // this Suite may be the same object...
|
|
380
|
+
* })
|
|
381
|
+
* .on(EVENT_TEST_BEGIN, test => {
|
|
382
|
+
* // ...as the `test.parent` property
|
|
383
|
+
* });
|
|
384
|
+
* }
|
|
385
|
+
* }
|
|
386
|
+
*/
|
|
387
387
|
linkPartialObjects(value) {
|
|
388
388
|
this._linkPartialObjects = Boolean(value);
|
|
389
389
|
return super.linkPartialObjects(value);
|
package/lib/runner.js
CHANGED
|
@@ -1116,11 +1116,11 @@ Runner.prototype.run = function (fn, opts = {}) {
|
|
|
1116
1116
|
* @public
|
|
1117
1117
|
* @example
|
|
1118
1118
|
* // this reporter needs proper object references when run in parallel mode
|
|
1119
|
-
* class MyReporter
|
|
1119
|
+
* class MyReporter {
|
|
1120
1120
|
* constructor(runner) {
|
|
1121
|
-
*
|
|
1121
|
+
* runner.linkPartialObjects(true)
|
|
1122
1122
|
* .on(EVENT_SUITE_BEGIN, suite => {
|
|
1123
|
-
|
|
1123
|
+
* // this Suite may be the same object...
|
|
1124
1124
|
* })
|
|
1125
1125
|
* .on(EVENT_TEST_BEGIN, test => {
|
|
1126
1126
|
* // ...as the `test.parent` property
|
package/mocha.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// mocha@11.0.
|
|
1
|
+
// mocha@11.0.1 in javascript ES2018
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -15296,11 +15296,11 @@
|
|
|
15296
15296
|
* @public
|
|
15297
15297
|
* @example
|
|
15298
15298
|
* // this reporter needs proper object references when run in parallel mode
|
|
15299
|
-
* class MyReporter
|
|
15299
|
+
* class MyReporter {
|
|
15300
15300
|
* constructor(runner) {
|
|
15301
|
-
*
|
|
15301
|
+
* runner.linkPartialObjects(true)
|
|
15302
15302
|
* .on(EVENT_SUITE_BEGIN, suite => {
|
|
15303
|
-
|
|
15303
|
+
* // this Suite may be the same object...
|
|
15304
15304
|
* })
|
|
15305
15305
|
* .on(EVENT_TEST_BEGIN, test => {
|
|
15306
15306
|
* // ...as the `test.parent` property
|
|
@@ -19201,7 +19201,7 @@
|
|
|
19201
19201
|
};
|
|
19202
19202
|
|
|
19203
19203
|
var name = "mocha";
|
|
19204
|
-
var version = "11.0.
|
|
19204
|
+
var version = "11.0.1";
|
|
19205
19205
|
var homepage = "https://mochajs.org/";
|
|
19206
19206
|
var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
|
|
19207
19207
|
var require$$17 = {
|