Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series




yours forever

Become a Pro and unlock everything




per month

Integration Testing In React & Cleanup

Now we will transition away from unit testing into integration testing. This video will give some context on what integration testing is and how it works within React. We will be creating a few more components and testing more events with integration testing.


Become a pro to download code and videos


Zak Laughton

almost 3 years ago

Looks like since this video was created, React Testing Library automatically cleans up after each test by default, so you shouldn't need to implement "afterEach(cleanup);" in each test file.

For more information, see the "Skipping Auto Cleanup" section here: https://testing-library.com/docs/react-testing-library/setup.

Want to join the conversation?

Become a Pro member today!