eslint-plugin-jest
Advanced tools
Comparing version 26.1.3 to 26.1.4
@@ -62,2 +62,3 @@ "use strict"; | ||
const snapshotMatchers = []; | ||
const depths = []; | ||
let expressionDepth = 0; | ||
@@ -108,3 +109,17 @@ | ||
'CallExpression:exit'(node) { | ||
if ((0, _utils.isDescribeCall)(node) || (0, _utils.isTestCaseCall)(node)) { | ||
var _depths$pop; | ||
/* istanbul ignore next */ | ||
expressionDepth = (_depths$pop = depths.pop()) !== null && _depths$pop !== void 0 ? _depths$pop : 0; | ||
} | ||
}, | ||
CallExpression(node) { | ||
if ((0, _utils.isDescribeCall)(node) || (0, _utils.isTestCaseCall)(node)) { | ||
depths.push(expressionDepth); | ||
expressionDepth = 0; | ||
} | ||
if (!(0, _utils.isExpectCall)(node)) { | ||
@@ -111,0 +126,0 @@ return; |
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "26.1.3", | ||
"version": "26.1.4", | ||
"description": "ESLint rules for Jest", | ||
@@ -115,3 +115,3 @@ "keywords": [ | ||
"eslint-remote-tester": "^2.1.0", | ||
"eslint-remote-tester-repositories": "^0.0.4", | ||
"eslint-remote-tester-repositories": "^0.0.5", | ||
"husky": "^7.0.2", | ||
@@ -118,0 +118,0 @@ "is-ci": "^3.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
273085
4755