-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: react_timeout_1.default is not a function #19
Comments
@plougsgaard need some help here. |
Okay I seem to have found the issue but it still needs a resolution, since I currently have to hack the usage of SetupTypescript + Jest + Enzyme Usage:
The errorWhen using in dev environment, everything works fine. However, when attempting to run a simple test with my component, I get the following error:
Looking at Issue microsoft/TypeScript#3019, it looks like the issue is with a missing Current FixWe are currently working around this issue by using all imports in the following way, however it is not the final solution:
I would love to hear of the proper resolution of this issue and what can be done. |
I've just been on holiday so didn't see your issue until now. Looking at the issue you reference it seems like TypeScript needs the definition files from somewhere, and I'd be happy to add them to this project if it means greater compatibility. If you're familiar with how to write them you could see if putting a Thanks for bringing this to attention! |
Is this just a DEV issue? Are we OK with production? I am worried whether things will break in production. Thanks! |
Hi,
My Jest test cases are failing with the following error:
The test case is a simple render and check if the component is loading fine. Any reason why I am facing this error while testing?
The text was updated successfully, but these errors were encountered: