eslint-plugin-jest-dom
Advanced tools
Comparing version 3.8.1 to 3.9.0
@@ -34,3 +34,3 @@ "use strict"; | ||
function isAntonymMatcher(matcherNode, matcherArguments) { | ||
return matcherNode.name === "toBeNull" || usesToBeOrToEqualWithNull(matcherNode, matcherArguments) || usesToHaveLengthZero(matcherNode, matcherArguments); | ||
return matcherNode.name === "toBeNull" || matcherNode.name === "toBeFalsy" || usesToBeOrToEqualWithNull(matcherNode, matcherArguments) || usesToHaveLengthZero(matcherNode, matcherArguments); | ||
} | ||
@@ -47,3 +47,3 @@ | ||
const create = context => { | ||
const alternativeMatchers = /^(toHaveLength|toBeDefined|toBeNull|toBe|toEqual)$/; | ||
const alternativeMatchers = /^(toHaveLength|toBeDefined|toBeNull|toBe|toEqual|toBeTruthy|toBeFalsy)$/; | ||
@@ -50,0 +50,0 @@ function getLengthValue(matcherArguments) { |
{ | ||
"name": "eslint-plugin-jest-dom", | ||
"version": "3.8.1", | ||
"version": "3.9.0", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
78211