Answers to React Redux Unit Test case ( 1 )

  1. 2017-01-06 08:01

    Create this function:

    export const wrapIntoReduxProvider = testingContainerComponent => (
        <Provider store={organizationStore({})}>
            {testingContainerComponent}
        </Provider>
    );
    

    and wrap your component into it

    const wrapper = mount(wrapIntoReduxProvider(<YourComponent />));
    

Leave a reply to - React Redux Unit Test case

◀ Go back