Skip to content
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

jest-environment-enzyme index.d.ts should include global React #283

Open
bschlenk opened this issue Nov 2, 2018 · 2 comments
Open

jest-environment-enzyme index.d.ts should include global React #283

bschlenk opened this issue Nov 2, 2018 · 2 comments

Comments

@bschlenk
Copy link

bschlenk commented Nov 2, 2018

The included index.d.ts file should also include the global React instance. Without it, TypeScript complains that 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.. Then I have to manually import * as React from 'react'; to silence the error.

@blainekasten
Copy link
Collaborator

Would you be willing to submit a fix? I'm not much of a typescripter so i'm not sure what the solution is.

@bschlenk
Copy link
Author

bschlenk commented Nov 4, 2018

Yeah I’ll take a look at it when I have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants