Comparing version 10.8.2 to 11.0.0-beta
@@ -90,6 +90,11 @@ 'use strict'; | ||
files.push( | ||
...glob.sync(pattern, { | ||
nodir: true, | ||
windowsPathsNoEscape: true | ||
}) | ||
...glob | ||
.sync(pattern, { | ||
nodir: true, | ||
windowsPathsNoEscape: true | ||
}) | ||
// glob@8 and earlier sorted results in en; glob@9 depends on OS sorting. | ||
// This preserves the older glob behavior. | ||
// https://github.com/mochajs/mocha/pull/5250/files#r1840469747 | ||
.sort((a, b) => a.localeCompare(b, 'en')) | ||
); | ||
@@ -96,0 +101,0 @@ if (!files.length) { |
@@ -60,3 +60,3 @@ 'use strict'; | ||
before: function (name, fn) { | ||
suites[0].beforeAll(name, fn); | ||
return suites[0].beforeAll(name, fn); | ||
}, | ||
@@ -71,3 +71,3 @@ | ||
after: function (name, fn) { | ||
suites[0].afterAll(name, fn); | ||
return suites[0].afterAll(name, fn); | ||
}, | ||
@@ -82,3 +82,3 @@ | ||
beforeEach: function (name, fn) { | ||
suites[0].beforeEach(name, fn); | ||
return suites[0].beforeEach(name, fn); | ||
}, | ||
@@ -93,3 +93,3 @@ | ||
afterEach: function (name, fn) { | ||
suites[0].afterEach(name, fn); | ||
return suites[0].afterEach(name, fn); | ||
}, | ||
@@ -96,0 +96,0 @@ |
@@ -377,12 +377,12 @@ /** | ||
* constructor(runner) { | ||
* this.runner.linkPartialObjects(true) | ||
* runner.linkPartialObjects(true) | ||
* .on(EVENT_SUITE_BEGIN, suite => { | ||
// this Suite may be the same object... | ||
* }) | ||
* .on(EVENT_TEST_BEGIN, test => { | ||
* // ...as the `test.parent` property | ||
* }); | ||
* } | ||
* } | ||
*/ | ||
* // this Suite may be the same object... | ||
* }) | ||
* .on(EVENT_TEST_BEGIN, test => { | ||
* // ...as the `test.parent` property | ||
* }); | ||
* } | ||
* } | ||
*/ | ||
linkPartialObjects(value) { | ||
@@ -389,0 +389,0 @@ this._linkPartialObjects = Boolean(value); |
@@ -1119,7 +1119,7 @@ 'use strict'; | ||
* // this reporter needs proper object references when run in parallel mode | ||
* class MyReporter() { | ||
* class MyReporter { | ||
* constructor(runner) { | ||
* this.runner.linkPartialObjects(true) | ||
* runner.linkPartialObjects(true) | ||
* .on(EVENT_SUITE_BEGIN, suite => { | ||
// this Suite may be the same object... | ||
* // this Suite may be the same object... | ||
* }) | ||
@@ -1126,0 +1126,0 @@ * .on(EVENT_TEST_BEGIN, test => { |
@@ -260,3 +260,3 @@ 'use strict'; | ||
this.emit(constants.EVENT_SUITE_ADD_HOOK_BEFORE_ALL, hook); | ||
return this; | ||
return hook; | ||
}; | ||
@@ -285,3 +285,3 @@ | ||
this.emit(constants.EVENT_SUITE_ADD_HOOK_AFTER_ALL, hook); | ||
return this; | ||
return hook; | ||
}; | ||
@@ -310,3 +310,3 @@ | ||
this.emit(constants.EVENT_SUITE_ADD_HOOK_BEFORE_EACH, hook); | ||
return this; | ||
return hook; | ||
}; | ||
@@ -335,3 +335,3 @@ | ||
this.emit(constants.EVENT_SUITE_ADD_HOOK_AFTER_EACH, hook); | ||
return this; | ||
return hook; | ||
}; | ||
@@ -338,0 +338,0 @@ |
{ | ||
"name": "mocha", | ||
"version": "10.8.2", | ||
"version": "11.0.0-beta", | ||
"type": "commonjs", | ||
@@ -43,3 +43,3 @@ "description": "simple, flexible, fun test framework", | ||
"engines": { | ||
"node": ">= 14.0.0" | ||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" | ||
}, | ||
@@ -57,2 +57,3 @@ "scripts": { | ||
"format": "run-s format:*", | ||
"lint:installed-check": "installed-check --engine-check", | ||
"lint:knip": "knip --cache", | ||
@@ -105,3 +106,3 @@ "lint:code": "eslint . \"bin/*\" --max-warnings 0", | ||
"find-up": "^5.0.0", | ||
"glob": "^8.1.0", | ||
"glob": "^10.4.5", | ||
"he": "^1.2.0", | ||
@@ -136,2 +137,3 @@ "js-yaml": "^4.1.0", | ||
"globals": "^13.24.0", | ||
"installed-check": "^9.3.0", | ||
"jsdoc": "^3.6.7", | ||
@@ -138,0 +140,0 @@ "jsdoc-ts-utils": "^2.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2128931
30614
55
1
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@8.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedonce@1.4.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedglob@^10.4.5