Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Test React Components with Enzyme and Jest

Test React Components with Enzyme and Jest


    Test React Component Lifecycle Methods with Enzyme

    Tyler ClarkTyler Clark

    There are times when our React components use lifecycle methods like componentDidMount. In this lesson we will make sure that we write tests to make sure that these methods are called. This includes testing that our component utilizes componentWillReceiveProps correctly.

    You must be a Member to view code