Answers ( 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 />));
    
◀ Go back