Closed interglobalmedia closed 5 years ago
I believe you can accomplish the same thing by following the docs here:
https://testing-library.com/docs/react-testing-library/setup#cleanup
Thanks @DanceParty. I already made the change by simply "guessing". Is there new documentation for the "new" library" relating to other things? Or is everything the same except for the name of the library? Thanks!
So if you wanted to stick as close to the tutorial as possible, I believe you can also just:
import '@testing-library/react/cleanup-after-each'
in the begining of the test file as well :)"
The new docs are listed here: https://testing-library.com/docs/react-testing-library/intro
Thanks. That's what I did. And thanks for the list to the new docs. I use the library in a number of my apps, but with the old version so the link will be very helpful. Thanks!
I got the following in Terminal:
How can we import cleanup-after-each now? Or is it even available?? Thanks.