We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I defined some function in the global window object.
Ex. window.getAnimal = (): void => { return 'dog'; }
I get this error:
Property 'getAnimal' does not exist on type 'Window & typeof globalThis'.
Worked up to version: 25.4.0
Stopped working in version: 25.5.0
Steps to reproduce the behavior:
Define a function in the global this object in an external file, and then try to access it in a test file. I get an error.
System: OS: Ubuntu Npm packages: jest: ts-jest: typescript:
The text was updated successfully, but these errors were encountered:
related to #1604
Sorry, something went wrong.
you can try alpha version #1604 (comment) to see if it fixes your issue
Close via #1606 . There will be a slight delay for 25.5.1 . Stay tune.
25.5.1 is out
Successfully merging a pull request may close this issue.
💥 Regression Report
I defined some function in the global window object.
Ex. window.getAnimal = (): void => {
return 'dog';
}
I get this error:
Property 'getAnimal' does not exist on type 'Window & typeof globalThis'.
Last working version
Worked up to version: 25.4.0
Stopped working in version: 25.5.0
To Reproduce
Steps to reproduce the behavior:
Define a function in the global this object in an external file, and then try to access it in a test file.
I get an error.
envinfo
The text was updated successfully, but these errors were encountered: