From 6dec056de3c646fa1bce41acadc31641237863a0 Mon Sep 17 00:00:00 2001 From: iHmD <6934421+iHmD@users.noreply.github.com> Date: Mon, 2 Sep 2019 03:46:26 +0000 Subject: [PATCH] Remove cleanup-after-each example (#7620) 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'; ```