Testing Component Events

A large portion of frontend behaviour involves user interactions such as clicks, so we need easy ways to test them.

This, like most common things you will want to test, is quite easy with React Testing Library.

This lesson covers common ways to test user interactions and the approaches you will typically use.

Loading full lesson content & code...

Ready to try running tests for this lesson?