text: import { createStore, applyMiddleware } from 'redux';
  import rootReducer from '../src/reducers';
  import { middlewares } from '../src/store';
  
  export const storeFactory = (initialState) => {
    const createStoreWithMiddleware = applyMiddleware(...middlewares)(
      createStore
    );
    return createStoreWithMiddleware(rootReducer, initialState);
  };
  
  export const findTestByAttr = (wrapper, val) =>
    wrapper.find(`[data-test='${val}']`);
  