eslint-plugin-jest
Advanced tools
Comparing version 22.5.0 to 22.5.1
{ | ||
"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, |
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
209526
6121