Skip to content

Commit c50c0bb

Browse files
benmonrognapse
authored andcommitted
docs: added link to lint plugin (#157)
1 parent f8a43ab commit c50c0bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ should be installed as one of your project's `devDependencies`:
8686
npm install --save-dev @testing-library/jest-dom
8787
```
8888

89+
> Note: We also recommend installing the jest-dom eslint plugin which provides auto-fixable lint rules
90+
> that prevent false positive tests and improve test readability by ensuring you are using the right
91+
> matchers in your tests. More details can be found at
92+
> [eslint-plugin-jest-dom](https://github.com/testing-library/eslint-plugin-jest-dom).
93+
8994
## Usage
9095

9196
Import `@testing-library/jest-dom/extend-expect` once (for instance in your
@@ -1098,6 +1103,7 @@ expect(document.querySelector('.cancel-button')).toBeTruthy()
10981103
> replacing `toBeInTheDOM` to read through the documentation of the proposed
10991104
> alternatives to see which use case works better for your needs.
11001105
1106+
11011107
## Inspiration
11021108
11031109
This whole library was extracted out of Kent C. Dodds' [DOM Testing

0 commit comments

Comments
 (0)