Closed jarlah closed 5 years ago
Hi, thanks for reporting. Could you try importing react-hooks-global-state/dist/devtools
and see if it makes any difference?
it works :)
// @ts-ignore no typescript declaration
import { reduxDevToolsExt } from 'react-hooks-global-state/dist/devtools';
but I needed to wrap with ts ignore, since it complains that there is no declaration for it. but otherwise, my tests passed :)
Ah, I see. The ts-ignore is not very nice, though. Let me see what I can do...
This should probably fixes the typing issue.
Published: https://www.npmjs.com/package/react-hooks-global-state/v/0.8.0 This also includes changes in #9.
Hi
I was just making a very simple store with some thunk, logger and devtools middleware.
When I run the app, all is fine. When I run tests with the devtools middleware I get:
I have fixed it by simply not adding the devtools if I am in NODE_ENV test.
But do you think its solvable, to make it compliant with create-react-app jest test environment?