verdnatura-chat/__mocks__/mockedStore.ts

9 lines
377 B
TypeScript
Raw Normal View History

2021-12-21 20:04:32 +00:00
import { applyMiddleware, compose, createStore } from 'redux';
import createSagaMiddleware from 'redux-saga';
import applyAppStateMiddleware from '../app/lib/appStateMiddleware';
import reducers from '../app/reducers';
const enhancers = compose(applyAppStateMiddleware(), applyMiddleware(createSagaMiddleware()));
export const mockedStore = createStore(reducers, enhancers);