You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -184,14 +184,6 @@ const { getByText } = render(<Toggle>text I can search for</Toggle>);
184
184
185
185
---
186
186
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
-
195
187
### Part Four: Testing a real component
196
188
197
189
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