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 26.1.3 to 26.1.4

15

lib/rules/prefer-snapshot-hint.js

@@ -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;

4

package.json
{
"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",

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