Testing Conditional Rendering

Testing when things are conditionally rendering in your components is going to make up a large percentage of your frontend tests.

Sometimes they'll be conditional based on the props, but also very often based on clicks, after data has loaded, when forms are filled out etc.

Loading full lesson content & code...

Ready to try running tests for this lesson?