You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to reference anything wrapped in a <Provider> and a connect
// testletcomponent=shallow(<Providerstore={store}><ContainerComponent/></Provider>);component.find('#abc');// returns nullletcomponent=shallow(<Providerstore={store}><divid="abc"></div></Provider>);component.find('#abc');// returns the div node// ContainerComponentconstComponent=({...})=>(<divid="abc"></div>);exportdefaultconnect(..., ...)(Component);
I followed: #1481 to the examples where the tests were written with enzyme, however, the containers are never tested in those. So I don't know whether I should/can test smart containers?