Skip to content

Conversation

@newtonry
Copy link
Contributor

@newtonry newtonry commented Nov 6, 2019

Summary

react-testing-library automatically runs cleanup unless otherwise specified (testing-library/react-testing-library#430). The change takes place in @testing-library/react@9.0.0 (https://github.com/testing-library/react-testing-library/releases/tag/v9.0.0) and later.

I found the documentation to be contradictory as to whether afterEach(cleanup) should be called, and so hopefully this comment clarifies it for future users.

Test plan

This is just adding a comment, so I do not believe any test plan is necessary.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonderful, thanks!

@SimenB SimenB merged commit c031ff0 into jestjs:master Nov 9, 2019
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants