Comparing version 10.8.2 to 11.0.0
@@ -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 @@ |
@@ -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", | ||
"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", | ||
@@ -135,2 +136,3 @@ "lint:code": "eslint . \"bin/*\" --max-warnings 0", | ||
"globals": "^13.24.0", | ||
"installed-check": "^9.3.0", | ||
"jsdoc": "^3.6.7", | ||
@@ -137,0 +139,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
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
2128664
55