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 22.5.0 to 22.5.1

2

package.json
{
"name": "eslint-plugin-jest",
"version": "22.5.0",
"version": "22.5.1",
"description": "Eslint rules for Jest",

@@ -5,0 +5,0 @@ "repository": "jest-community/eslint-plugin-jest",

@@ -21,2 +21,3 @@ 'use strict';

'require()',
'var path = "./__mocks__.js"; require(path)',
'entirelyDifferent(fn)',

@@ -23,0 +24,0 @@ ],

@@ -25,3 +25,7 @@ 'use strict';

'CallExpression[callee.name="require"]'(node) {
if (node.arguments.length && isMockPath(node.arguments[0].value)) {
if (
node.arguments.length &&
node.arguments[0].value &&
isMockPath(node.arguments[0].value)
) {
context.report({

@@ -28,0 +32,0 @@ loc: node.arguments[0].loc,

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