eslint-plugin-jest
Advanced tools
Comparing version 24.5.0 to 24.5.1
@@ -0,1 +1,8 @@ | ||
## [24.5.1](https://github.com/jest-community/eslint-plugin-jest/compare/v24.5.0...v24.5.1) (2021-10-04) | ||
### Bug Fixes | ||
* **prefer-to-be:** don't consider RegExp literals as `toBe`-able ([#922](https://github.com/jest-community/eslint-plugin-jest/issues/922)) ([99b6d42](https://github.com/jest-community/eslint-plugin-jest/commit/99b6d429e697d60645b4bc64ee4ae34d7016118c)) | ||
# [24.5.0](https://github.com/jest-community/eslint-plugin-jest/compare/v24.4.3...v24.5.0) (2021-09-29) | ||
@@ -2,0 +9,0 @@ |
@@ -23,3 +23,6 @@ "use strict"; | ||
const isPrimitiveLiteral = matcher => getFirstArgument(matcher).type === _experimentalUtils.AST_NODE_TYPES.Literal; | ||
const isPrimitiveLiteral = matcher => { | ||
const firstArg = getFirstArgument(matcher); | ||
return firstArg.type === _experimentalUtils.AST_NODE_TYPES.Literal && !('regex' in firstArg); | ||
}; | ||
@@ -26,0 +29,0 @@ const getFirstArgument = matcher => { |
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "24.5.0", | ||
"version": "24.5.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
278288
4351