1. 20
    Applying our Redux Test Helpers to an Existing Component Test
    57s

Applying our Redux Test Helpers to an Existing Component Test

Share this video with your friends

Send Tweet

In this lesson we try on the updated renderWithContext function. The updated version allows preloadedState to be passed in as its second argument and return a store property which we destructure off of the response.

Because we don't have access to the store until after we render any data we want our components to access on initial render will we need to be included it as part of the preloadedState.