Socket
Socket
Sign inDemoInstall

eslint-plugin-jest

Package Overview
Dependencies
Maintainers
11
Versions
325
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest - npm Package Compare versions

Comparing version 27.0.1 to 27.0.2

13

docs/rules/no-deprecated-functions.md

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc