-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error when use jest-environment-jsdom in Typescript #8347
Comments
Ah, I didn't know ignores were not emitted... (microsoft/TypeScript#20360) We should make sure this works properly in Jest 25. A PR fixing the type issue is very much welcome, of course! |
@SimenB I created a PR to fix it, please review and give me a comment. Thank you very much! |
* Declare global prototype in JSDOMEnvironment to fix issue #8347 * Change type to check isWin and remove set global to null * Add description of PR to the changelog * Set global to `null` in teardown process and uncheck is window for global prototype
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
When I import and use jest-environment-jsdom in my project, using Typescript to build will receive a message error:
It's an error when build to publish right?
To Reproduce
In types of build missing a comment
// @ts-ignore
, check here:https://unpkg.com/[email protected]/build/index.d.ts
The text was updated successfully, but these errors were encountered: