DEV Community

Discussion on: 8 simple steps to start testing React Apps using React Testing Library and Jest

Collapse
 
hellomeghna profile image
Meggie • Edited

Hi, really loved the article.
Just curious, inside 7th and 8th test files, you've not added afterEach(cleanup), but I think it's a good practice to include it, right?

Also in TestRouter.js, the third <Route>'s path should be /contact:name?

<Route path="/contact:name" component={Contact} />