Skip to content

Commit

Permalink
Remove cleanup-after-each example (#7620)
Browse files Browse the repository at this point in the history
cleanup is called now by default after each test if the testing framework supports the afterEach global
  • Loading branch information
iHmD authored and ianschmitz committed Sep 2, 2019
1 parent 567787b commit 6dec056
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docusaurus/docs/running-tests.md
Expand Up @@ -191,8 +191,6 @@ 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 will ensure they're removed after each test.
import '@testing-library/react/cleanup-after-each';
// this adds jest-dom's custom assertions
import '@testing-library/jest-dom/extend-expect';
```
Expand Down

0 comments on commit 6dec056

Please sign in to comment.