Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add comment about 'cleanup' in react-testing-library example #9144

Merged
merged 1 commit into from
Nov 9, 2019

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/[email protected] (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