eslint-plugin-jest
Advanced tools
Comparing version 25.0.1 to 25.0.2
@@ -0,1 +1,8 @@ | ||
## [25.0.2](https://github.com/jest-community/eslint-plugin-jest/compare/v25.0.1...v25.0.2) (2021-10-11) | ||
### Bug Fixes | ||
* **valid-expect-in-promise:** support out of order awaits ([#939](https://github.com/jest-community/eslint-plugin-jest/issues/939)) ([07d2137](https://github.com/jest-community/eslint-plugin-jest/commit/07d213719de974d6b5a1cab75e836dc39b432f87)) | ||
## [25.0.1](https://github.com/jest-community/eslint-plugin-jest/compare/v25.0.0...v25.0.1) (2021-10-10) | ||
@@ -2,0 +9,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.postprocess = exports.preprocess = void 0; | ||
exports.preprocess = exports.postprocess = void 0; | ||
@@ -9,0 +9,0 @@ // https://eslint.org/docs/developer-guide/working-with-plugins#processors-in-plugins |
@@ -6,4 +6,5 @@ "use strict"; | ||
}); | ||
exports.getAccessorValue = exports.followTypeAssertionChain = exports.createRule = exports.TestCaseProperty = exports.TestCaseName = exports.ModifierName = exports.HookName = exports.EqualityMatcher = exports.DescribeProperty = exports.DescribeAlias = void 0; | ||
exports.getNodeName = getNodeName; | ||
exports.scopeHasLocalReference = exports.isDescribeCall = exports.isTestCaseCall = exports.getTestCallExpressionsFromDeclaredVariables = exports.isHook = exports.isFunction = exports.TestCaseProperty = exports.DescribeProperty = exports.HookName = exports.TestCaseName = exports.DescribeAlias = exports.parseExpectCall = exports.isParsedEqualityMatcherCall = exports.EqualityMatcher = exports.ModifierName = exports.isExpectMember = exports.isExpectCall = exports.getAccessorValue = exports.isSupportedAccessor = exports.isIdentifier = exports.hasOnlyOneArgument = exports.getStringValue = exports.isStringNode = exports.followTypeAssertionChain = exports.createRule = void 0; | ||
exports.scopeHasLocalReference = exports.parseExpectCall = exports.isTestCaseCall = exports.isSupportedAccessor = exports.isStringNode = exports.isParsedEqualityMatcherCall = exports.isIdentifier = exports.isHook = exports.isFunction = exports.isExpectMember = exports.isExpectCall = exports.isDescribeCall = exports.hasOnlyOneArgument = exports.getTestCallExpressionsFromDeclaredVariables = exports.getStringValue = void 0; | ||
@@ -65,3 +66,4 @@ var _path = require("path"); | ||
*/ | ||
const isTemplateLiteral = (node, value) => node.type === _experimentalUtils.AST_NODE_TYPES.TemplateLiteral && node.quasis.length === 1 && (value === undefined || node.quasis[0].value.raw === value); | ||
const isTemplateLiteral = (node, value) => node.type === _experimentalUtils.AST_NODE_TYPES.TemplateLiteral && node.quasis.length === 1 && ( // bail out if not simple | ||
value === undefined || node.quasis[0].value.raw === value); | ||
@@ -68,0 +70,0 @@ /** |
@@ -104,3 +104,3 @@ "use strict"; | ||
return node.argument.type === _experimentalUtils.AST_NODE_TYPES.Identifier && (0, _utils.isIdentifier)(node.argument, name); | ||
return (0, _utils.isIdentifier)(node.argument, name); | ||
}; | ||
@@ -130,4 +130,4 @@ /** | ||
if (node.type === _experimentalUtils.AST_NODE_TYPES.ExpressionStatement) { | ||
if (node.expression.type === _experimentalUtils.AST_NODE_TYPES.AwaitExpression) { | ||
return isPromiseMethodThatUsesValue(node.expression, identifier); | ||
if (node.expression.type === _experimentalUtils.AST_NODE_TYPES.AwaitExpression && isPromiseMethodThatUsesValue(node.expression, identifier)) { | ||
return true; | ||
} // (re)assignment changes the runtime value, so if we've not found an | ||
@@ -134,0 +134,0 @@ // await or return already we act as if we've reached the end of the body |
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "25.0.1", | ||
"version": "25.0.2", | ||
"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
286111
4261