Skip to content

Commit

Permalink
Use simplified import of @testing-library/jest-dom (#8763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dremora committed Apr 4, 2020
1 parent bc41892 commit 56d34c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Similar to `enzyme` you can create a `src/setupTests.js` file to avoid boilerpla
```js
// react-testing-library renders your components to document.body,
// this adds jest-dom's custom assertions
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
```

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

0 comments on commit 56d34c0

Please sign in to comment.