Skip to content

Commit 6dec056

Browse files
iHmDianschmitz
authored andcommitted
Remove cleanup-after-each example (#7620)
cleanup is called now by default after each test if the testing framework supports the afterEach global
1 parent 567787b commit 6dec056

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docusaurus/docs/running-tests.md

-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ Similar to `enzyme` you can create a `src/setupTests.js` file to avoid boilerpla
191191

192192
```js
193193
// react-testing-library renders your components to document.body,
194-
// this will ensure they're removed after each test.
195-
import '@testing-library/react/cleanup-after-each';
196194
// this adds jest-dom's custom assertions
197195
import '@testing-library/jest-dom/extend-expect';
198196
```

0 commit comments

Comments
 (0)