From 0ee14cc892ebc758f34c9eb5369d4a2e870f52d2 Mon Sep 17 00:00:00 2001 From: iHmD <6934421+iHmD@users.noreply.github.com> Date: Sat, 31 Aug 2019 12:31:34 +0000 Subject: [PATCH] cleanup-after-each is no longer necessary! cleanup is called now by default after each test if the testing framework supports the afterEach global! --- docusaurus/docs/running-tests.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index cd8aaad2b24..3fa60ec41fa 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -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'; ```