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
Would this make the following section of the README unnecessary?
Note:
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.
You can use Jest's handy method that runs after each test to do this: afterEach(cleanup).
The text was updated successfully, but these errors were encountered:
Apparently
cleanup()
is done automatically if the testing framework you're using supports theafterEach
global (like mocha, Jest, and Jasmine):https://testing-library.com/docs/react-testing-library/api#cleanup
Would this make the following section of the README unnecessary?
The text was updated successfully, but these errors were encountered: