eslint-plugin-jest
Advanced tools
Comparing version 27.0.1 to 27.0.2
@@ -23,9 +23,8 @@ # Disallow use of deprecated functions (`no-deprecated-functions`) | ||
This function was renamed to `resetModules` in Jest 15, and is scheduled for | ||
removal in Jest 27. | ||
This function was renamed to `resetModules` in Jest 15 and removed in Jest 27. | ||
### `jest.addMatchers` | ||
This function was replaced with `expect.extend` in Jest 17, and is scheduled for | ||
removal in Jest 27. | ||
This function was replaced with `expect.extend` in Jest 17 and removed in | ||
Jest 27. | ||
@@ -45,4 +44,4 @@ ### `require.requireActual` & `require.requireMock` | ||
This function was renamed to `advanceTimersByTime` in Jest 22, and is scheduled | ||
for removal in Jest 27. | ||
This function was renamed to `advanceTimersByTime` in Jest 22 and removed in | ||
Jest 27. | ||
@@ -52,2 +51,2 @@ ### `jest.genMockFromModule` | ||
This function was renamed to `createMockFromModule` in Jest 26, and is scheduled | ||
for removal in a future version of Jest. | ||
for removal in Jest 30. |
@@ -10,2 +10,10 @@ "use strict"; | ||
const isChainRestricted = (chain, restriction) => { | ||
if (_utils.ModifierName.hasOwnProperty(restriction) || restriction.endsWith('.not')) { | ||
return chain.startsWith(restriction); | ||
} | ||
return chain === restriction; | ||
}; | ||
var _default = (0, _utils.createRule)({ | ||
@@ -45,3 +53,3 @@ name: __filename, | ||
for (const [restriction, message] of Object.entries(restrictedChains)) { | ||
if (chain.startsWith(restriction)) { | ||
if (isChainRestricted(chain, restriction)) { | ||
context.report({ | ||
@@ -48,0 +56,0 @@ messageId: message ? 'restrictedChainWithMessage' : 'restrictedChain', |
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "27.0.1", | ||
"version": "27.0.2", | ||
"description": "ESLint rules for Jest", | ||
@@ -112,3 +112,3 @@ "keywords": [ | ||
"@types/dedent": "^0.7.0", | ||
"@types/jest": "^28.0.0", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^14.18.26", | ||
@@ -115,0 +115,0 @@ "@types/prettier": "^2.0.0", |
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
299525
5167