DEV Community

Discussion on: Setting up Jest + React-Testing-Library

Collapse
 
abetoots profile image
abe caymo

also note (from docs):
cleanup is only done automatically if the testing framework you're using supports the afterEach global (like mocha, Jest, and Jasmine). If not, you will need to do manual cleanups after each test.