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 27.0.0 to 27.0.1

3

lib/rules/no-done-callback.js

@@ -36,4 +36,3 @@ "use strict";

description: 'Avoid using a callback in asynchronous tests and hooks',
recommended: 'error',
suggestion: true
recommended: 'error'
},

@@ -40,0 +39,0 @@ messages: {

@@ -18,4 +18,3 @@ "use strict";

description: 'Disallow focused tests',
recommended: 'error',
suggestion: true
recommended: 'error'
},

@@ -22,0 +21,0 @@ messages: {

@@ -18,4 +18,3 @@ "use strict";

description: 'Suggest using the built-in equality matchers',
recommended: false,
suggestion: true
recommended: false
},

@@ -22,0 +21,0 @@ messages: {

@@ -16,6 +16,12 @@ "use strict";

while (parent) {
var _parent$parent;
var _parent$parent, _parent$parent2;
if (((_parent$parent = parent.parent) === null || _parent$parent === void 0 ? void 0 : _parent$parent.type) === _utils.AST_NODE_TYPES.BlockStatement) {
return parent.parent.body[0] === parent;
} // if we've hit an arrow function, then it must have a single expression
// as its body, as otherwise we would have hit the block statement already
if (((_parent$parent2 = parent.parent) === null || _parent$parent2 === void 0 ? void 0 : _parent$parent2.type) === _utils.AST_NODE_TYPES.ArrowFunctionExpression) {
return true;
}

@@ -36,6 +42,2 @@

// const suggestions: Array<[MessageIds, string]> = [
// ['suggestAddingHasAssertions', 'expect.hasAssertions();'],
// ['suggestAddingAssertions', 'expect.assertions();'],
// ];
var _default = (0, _utils2.createRule)({

@@ -47,4 +49,3 @@ name: __filename,

description: 'Suggest using `expect.assertions()` OR `expect.hasAssertions()`',
recommended: false,
suggestion: true
recommended: false
},

@@ -51,0 +52,0 @@ messages: {

@@ -16,4 +16,3 @@ "use strict";

description: 'Suggest using `toStrictEqual()`',
recommended: false,
suggestion: true
recommended: false
},

@@ -20,0 +19,0 @@ messages: {

{
"name": "eslint-plugin-jest",
"version": "27.0.0",
"version": "27.0.1",
"description": "ESLint rules for Jest",

@@ -5,0 +5,0 @@ "keywords": [

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