verdnatura-chat/__mocks__/mockedStore.ts

8 lines
281 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 reducers from '../app/reducers';
2021-12-21 20:14:08 +00:00
const enhancers = compose(applyMiddleware(createSagaMiddleware()));
2021-12-21 20:04:32 +00:00
export const mockedStore = createStore(reducers, enhancers);