File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -120,22 +120,6 @@ import '@testing-library/jest-dom'
120
120
> Note: If you're using TypeScript, make sure your setup file is a ` .ts ` and not
121
121
> a ` .js ` to include the necessary types.
122
122
123
- Alternatively, you can selectively import only the matchers you intend to use,
124
- and extend jest's ` expect ` yourself:
125
-
126
- ``` javascript
127
- import {
128
- toBeInTheDocument ,
129
- toHaveClass ,
130
- } from ' @testing-library/jest-dom/matchers'
131
-
132
- expect .extend ({toBeInTheDocument, toHaveClass})
133
- ```
134
-
135
- > Note: when using TypeScript, this way of importing matchers won't provide the
136
- > necessary type definitions. More on this
137
- > [ here] ( https://github.com/testing-library/jest-dom/pull/11#issuecomment-387817459 ) .
138
-
139
123
## Custom matchers
140
124
141
125
` @testing-library/jest-dom ` can work with any library or framework that returns
You can’t perform that action at this time.
0 commit comments