From f169f6e0a7b6ea42cf6c57f775f8f03951704578 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Tue, 21 Dec 2021 17:04:32 -0300 Subject: [PATCH] chore: create mocketStore --- __mocks__/mockedStore.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 __mocks__/mockedStore.ts diff --git a/__mocks__/mockedStore.ts b/__mocks__/mockedStore.ts new file mode 100644 index 000000000..3da9dd0e9 --- /dev/null +++ b/__mocks__/mockedStore.ts @@ -0,0 +1,8 @@ +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);