From 338915eb56b00e25596695cdf64829751a77a6ec Mon Sep 17 00:00:00 2001 From: Jean Date: Sat, 31 Aug 2019 12:12:14 -0300 Subject: [PATCH] Fix warning by removing deprecated instruction From the @testing-library docs: The module `@testing-library/react/cleanup-after-each` has been deprecated and no longer does anything (it is not needed). You no longer need to import this module and can safely remove any import or configuration which imports this module. --- docusaurus/docs/running-tests.md | 3 --- 1 file changed, 3 deletions(-) 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'; ```