huan / ducks

Reducer Bundles Manager for Redux, Implemented the Ducks Modular Proposal
https://paka.dev/npm/ducks
Apache License 2.0
0 stars 0 forks source link

createMockStore is not a function #3

Open huan opened 3 years ago

huan commented 3 years ago

When running with ES Module mode, we have to:

import * as MOCK_STORE 'redux-mock-store'
const createMockStore = (MOCK_STORE.default as any).default as typeof MOCK_STORE.default

The above code will violate the Typing system (must use as any), but it works for the final code.

To be investigated.

Version

Link to