PodRocket - A web development podcast from LogRocket cover image

Your testing questions answered

PodRocket - A web development podcast from LogRocket

00:00

How to Test a React Component

I prefer to have most of my tests render higher up in the tree than test a button component. I don't mind having really big components that are covering a lot of ground. When you start testing in a new project, the first test should be an end-to-end test, 100%. And then the second test should be a low-level unit test,. Just so that you can get those tools set up and then you fill in the middle with integration tests.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app