eslint-plugin-jest-dom
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -73,3 +73,7 @@ "use strict"; | ||
}) { | ||
// only report on dom nodes which we can resolve to RTL queries. | ||
if (matcherNode.parent.parent.type !== "CallExpression") { | ||
return; | ||
} // only report on dom nodes which we can resolve to RTL queries. | ||
if (!queryNode || !queryNode.name && !queryNode.property) return; // toHaveLength() is only invalid with 0 or 1 | ||
@@ -76,0 +80,0 @@ |
{ | ||
"name": "eslint-plugin-jest-dom", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom", | ||
@@ -44,3 +44,3 @@ "main": "dist/index.js", | ||
"@babel/runtime": "^7.16.3", | ||
"@testing-library/dom": "^7.31.2", | ||
"@testing-library/dom": "^8.11.1", | ||
"requireindex": "^1.2.0" | ||
@@ -47,0 +47,0 @@ }, |
@@ -15,6 +15,3 @@ <div align="center"> | ||
[![MIT License][license-badge]][license] | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-17-orange.svg?style=flat-square)](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
[![All Contributors][all-contributors-badge]](#contributors-) | ||
[![PRs Welcome][prs-badge]][prs] | ||
@@ -187,4 +184,4 @@ [![Code of Conduct][coc-badge]][coc] | ||
[node]: https://nodejs.org | ||
[build-badge]: https://img.shields.io/travis/testing-library/eslint-plugin-jest-dom.svg?style=flat-square | ||
[build]: https://travis-ci.org/testing-library/eslint-plugin-jest-dom | ||
[build-badge]: https://img.shields.io/github/workflow/status/testing-library/eslint-plugin-jest-dom/validate?logo=github&style=flat-square | ||
[build]: https://github.com/testing-library/eslint-plugin-jest-dom/actions?query=workflow%3Avalidate | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/eslint-plugin-jest-dom.svg?style=flat-square | ||
@@ -204,2 +201,3 @@ [coverage]: https://codecov.io/github/testing-library/eslint-plugin-jest-dom | ||
[all-contributors]: https://github.com/all-contributors/all-contributors | ||
[all-contributors-badge]: https://img.shields.io/github/all-contributors/testing-library/eslint-plugin-jest-dom?color=orange&style=flat-square | ||
[bugs]: https://github.com/testing-library/eslint-plugin-jest-dom/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Acreated-desc+label%3Abug | ||
@@ -206,0 +204,0 @@ [requests]: https://github.com/testing-library/eslint-plugin-jest-dom/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement |
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
79076
1217
204
+ Added@testing-library/dom@8.20.1(transitive)
+ Added@types/aria-query@5.0.4(transitive)
+ Addedansi-styles@5.2.0(transitive)
+ Addedaria-query@5.1.3(transitive)
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddeep-equal@2.2.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-get-iterator@1.1.3(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-bigint@1.0.4(transitive)
+ Addedis-boolean-object@1.1.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.0.7(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakset@2.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedobject-inspect@1.13.2(transitive)
+ Addedobject-is@1.1.6(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedpretty-format@27.5.1(transitive)
+ Addedregexp.prototype.flags@1.5.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstop-iteration-iterator@1.0.0(transitive)
+ Addedwhich-boxed-primitive@1.0.2(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
- Removed@babel/runtime-corejs3@7.25.6(transitive)
- Removed@jest/types@26.6.2(transitive)
- Removed@testing-library/dom@7.31.2(transitive)
- Removed@types/aria-query@4.2.2(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@3.0.4(transitive)
- Removed@types/node@22.7.4(transitive)
- Removed@types/yargs@15.0.19(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedaria-query@4.2.2(transitive)
- Removedcore-js-pure@3.38.1(transitive)
- Removedpretty-format@26.6.2(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@testing-library/dom@^8.11.1