From b3d846030544dc4dfa27ecbc5028976c138e31b9 Mon Sep 17 00:00:00 2001 From: Jamie Coe Date: Sun, 10 Nov 2019 15:17:22 +0200 Subject: [PATCH] Update docs on cleanup functionality --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 15f445f..136ebf2 100644 --- a/README.md +++ b/README.md @@ -184,14 +184,6 @@ const { getByText } = render(text I can search for); --- -**Note:** - -If you read the docs for `render` you'll see that it's recommended to be used with the `cleanup` function. This will ensure you don't end up with lots of copies of your component in the same document. - -You can use Jest's handy method that runs after each test to do this: `afterEach(cleanup)`. - ---- - ### Part Four: Testing a real component Let's get testing a more complex component. Run `npm run dev` and take a look at http://localhost:1234. We're going to write some tests for the Jadenizer component on the left.