Test Simulated Event Handlers with Enzyme

Tyler Clark
InstructorTyler Clark

Share this video with your friends

Send Tweet

Sometimes our components use event handlers to update state. In this lesson we’ll work with a component that uses an onClick and onChange handler and use Enzyme to test that the conditionally rendered text updates subsequently.