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

Custom function defined in window object are no longer working. #1607

Closed
TimMouskhelichvili opened this issue May 6, 2020 · 4 comments · Fixed by #1606
Closed

Custom function defined in window object are no longer working. #1607

TimMouskhelichvili opened this issue May 6, 2020 · 4 comments · Fixed by #1606

Comments

@TimMouskhelichvili
Copy link

TimMouskhelichvili commented May 6, 2020

💥 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

System:
    OS: Ubuntu

Npm packages:
    jest:
    ts-jest:
    typescript:
@ahnpnl
Copy link
Collaborator

ahnpnl commented May 6, 2020

related to #1604

@ahnpnl
Copy link
Collaborator

ahnpnl commented May 7, 2020

you can try alpha version #1604 (comment) to see if it fixes your issue

@ahnpnl
Copy link
Collaborator

ahnpnl commented May 8, 2020

Close via #1606 . There will be a slight delay for 25.5.1 . Stay tune.

@ahnpnl ahnpnl closed this as completed May 8, 2020
@ahnpnl
Copy link
Collaborator

ahnpnl commented May 9, 2020

25.5.1 is out

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

Successfully merging a pull request may close this issue.

2 participants