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.3.1 to 22.3.2

2

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

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

@@ -97,2 +97,17 @@ 'use strict';

},
{
code: ['it(`it1`, () => {});', 'it(`it2`, () => {});'].join('\n'),
env: {
es6: true,
},
},
{
code: [
'describe(`describe1`, () => {});',
'describe(`describe2`, () => {});',
].join('\n'),
env: {
es6: true,
},
},
],

@@ -99,0 +114,0 @@

@@ -53,2 +53,10 @@ 'use strict';

const getArgValue = arg => {
if (arg.type === 'TemplateLiteral') {
return arg.quasis[0].value.raw;
}
return arg.value;
};
module.exports = {

@@ -72,3 +80,3 @@ meta: {

}
const title = node.arguments[0].value;
const title = getArgValue(firstArgument);
handleTestCaseTitles(context, currentLayer.testTitles, node, title);

@@ -75,0 +83,0 @@ handleDescribeBlockTitles(

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