File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -289,10 +289,8 @@ expect(firstRender).toMatchDiffSnapshot(asFragment())
289
289
290
290
Unmounts React trees that were mounted with [render](#render).
291
291
292
- > Please note that this is done automatically if the testing framework you're
293
- > using supports the ` afterEach ` global and it is injected to your testing
294
- > environment (like mocha, Jest, and Jasmine). If not, you will need to do
295
- > manual cleanups after each test.
292
+ > This is called automatically if your testing framework (such as mocha, Jest or
293
+ > Jasmine) injects a global ` afterEach ()` function into the testing environment.
296
294
297
295
For example, if you're using the [ava](https://github.com/avajs/ava) testing
298
296
framework, then you would need to use the ` test .afterEach ` hook like so:
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ const {results} = render(YourComponent, {myProp: 'value'})
70
70
71
71
## ` cleanup `
72
72
73
- > You don't need to import or use this, it's done automagically for you with
74
- > ` globals: true ` in your test config!
73
+ > This is called automatically if your testing framework (such as mocha, Jest or
74
+ > Jasmine) injects a global ` afterEach() ` function into the testing environment.
75
75
76
76
Unmounts the component from the container and destroys the container.
77
77
You can’t perform that action at this time.
0 commit comments