Skip to content

Commit f4c10c3

Browse files
author
Mo Sattler
authored
docs: Update README.md (#251)
1 parent d6b60a9 commit f4c10c3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,6 @@ import '@testing-library/jest-dom'
120120
> Note: If you're using TypeScript, make sure your setup file is a `.ts` and not
121121
> a `.js` to include the necessary types.
122122
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-
139123
## Custom matchers
140124

141125
`@testing-library/jest-dom` can work with any library or framework that returns

0 commit comments

Comments
 (0)