React Testing: Utility modules

InstructorTrevor Miller

Share this video with your friends

Send Tweet

When writing tests for our React code, it is helpful to pull out any functionality that doesn't have to do with our UI components into separate modules, so that they can be tested separately. In this lesson, we will take a look at a React component and how we can pull out some of its generic utility logic into a separate module. We will then write some tests for that module.

Martin Bayly
~ 9 years ago

It would be useful if the sample code for this video series was broken down into separate branches or tags in the git repo to match each lesson to make it easier to follow along by coding and then refreshing to get the sample solution.

Joe
~ 9 years ago

I totally agree. It would make following along with the lesson so much easier.

Trevor Millerinstructor
~ 9 years ago

Thanks for the feedback Martin and Joe

Adam Cardenas
~ 9 years ago

yeah, kinda sucks that we cannot follow along

Andres
~ 7 years ago

code with 2017-2018 dependencies:

https://github.com/andfelzapata/react-testing-book