Skip to content

Commit c972efd

Browse files
authored
Merge pull request #13 from jamiecoe/update-readme
Update docs on cleanup functionality
2 parents cf344c3 + b3d8460 commit c972efd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,6 @@ const { getByText } = render(<Toggle>text I can search for</Toggle>);
184184

185185
---
186186

187-
**Note:**
188-
189-
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.
190-
191-
You can use Jest's handy method that runs after each test to do this: `afterEach(cleanup)`.
192-
193-
---
194-
195187
### Part Four: Testing a real component
196188

197189
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.

0 commit comments

Comments
 (0)