Remove cleanup-after-each example (#7620)

cleanup is called now by default after each test if the testing framework supports the afterEach global
This commit is contained in:
iHmD
2019-09-02 03:46:26 +00:00
committed by Ian Schmitz
parent 567787bdf7
commit 6dec056de3

View File

@@ -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';
```