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 21.27.0 to 21.27.1

2

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

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

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

'window.fetch = jest.fn',
'Date.now = fn()',
'obj.mock = jest.something()',

@@ -18,0 +19,0 @@ 'const mock = jest.fn()',

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

const getJestFnCall = node => {
if (node.type !== 'CallExpression' && node.type !== 'MemberExpression') {
if (
(node.type !== 'CallExpression' && node.type !== 'MemberExpression') ||
(node.callee && node.callee.type !== 'MemberExpression')
) {
return null;

@@ -10,0 +13,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