diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index cd8aaad2b24..b7ab46f68ce 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -190,9 +190,6 @@ yarn add @testing-library/react @testing-library/jest-dom Similar to `enzyme` you can create a `src/setupTests.js` file to avoid boilerplate in your test files: ```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'; ```