Open huan opened 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.
as any
To be investigated.
"redux-mock-store": "^1.5.4"
"@types/redux-mock-store": "^1.0.3"
When running with ES Module mode, we have to:
The above code will violate the Typing system (must use
as any
), but it works for the final code.To be investigated.
Version
"redux-mock-store": "^1.5.4"
"@types/redux-mock-store": "^1.0.3"
Link to