eslint-plugin-jest
Advanced tools
Comparing version 27.0.0 to 27.0.1
@@ -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": [ |
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
299364
5161