Accepted answer

Try registering redux-thunk middleware with your redux-mock-store so that the tests are aware of the async middleware you are using in your actual store is using:

import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'

const middlewares = [thunk]
const mockStore = configureMockStore(middlewares)

Hopefully that helps!

Related Query

More Query from same tag