File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ should be installed as one of your project's `devDependencies`:
86
86
npm install --save-dev @testing-library/jest-dom
87
87
```
88
88
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
+
89
94
## Usage
90
95
91
96
Import ` @testing-library/jest-dom/extend-expect ` once (for instance in your
@@ -1098,6 +1103,7 @@ expect(document.querySelector('.cancel-button')).toBeTruthy()
1098
1103
> replacing ` toBeInTheDOM` to read through the documentation of the proposed
1099
1104
> alternatives to see which use case works better for your needs.
1100
1105
1106
+
1101
1107
## Inspiration
1102
1108
1103
1109
This whole library was extracted out of Kent C. Dodds' [DOM Testing
You can’t perform that action at this time.
0 commit comments