Skip to content

Commit 56d34c0

Browse files
authored
Use simplified import of @testing-library/jest-dom (facebook#8763)
1 parent bc41892 commit 56d34c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus/docs/running-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Similar to `enzyme` you can create a `src/setupTests.js` file to avoid boilerpla
194194
```js
195195
// react-testing-library renders your components to document.body,
196196
// this adds jest-dom's custom assertions
197-
import '@testing-library/jest-dom/extend-expect';
197+
import '@testing-library/jest-dom';
198198
```
199199

200200
Here's an example of using `react-testing-library` and `jest-dom` for testing that the `<App />` component renders "Welcome to React".

0 commit comments

Comments
 (0)