aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/ducks/tutils.js
blob: 90a21b78d05b87bea81757da9b0c625fa444c72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
jest.unmock('redux')
jest.unmock('redux-thunk')

import { combineReducers, applyMiddleware, createStore as createReduxStore } from 'redux'
import thunk from 'redux-thunk'

export function createStore(parts) {
    return createReduxStore(
        combineReducers(parts),
        applyMiddleware(...[thunk])
    )
}