I am learning taking this testing course to test connected components by setting up a store factory
test helper that \'creates a store for testing that matches the
Solution: I forgot the browser parameter for my root reducer, given I was using connected-react-router
.
import rootReducer from 'reducers/rootReducer';
import {createBrowserHistory} from 'history';
export const storeFactory = (initialState) => createStore(rootReducer(createBrowserHistory()), initialState);