-
-
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
jest.Global incorrectly extends interface 'NodeJS.Global'? #8926
Comments
@jeysal would you mind taking a look? |
We don't get that error when building (using the latest TS 3.6), but maybe it's an issue with older versions of TS?
24.9.0 is the latest 24 release, so just changing that part wouldn't make a difference. Something else changed. I'd take a look at any lockfiles you might have. |
Looks like a conflict with another framework defining the |
Probably it is conflicting with mocha since i have seen some errors like |
@kmdrGroch U happen to find any resolution, as even in one of my project, getting same error |
I think it was related that both jest and mocha (and more test runners/frameworks) were installed in the same project. I guess there was some problems with namespaces and so typescript assumed that these functions were defined in several places. So I can say it is solved. |
@aqumus try npm prune or remove / reinstall test frameworks / runners if you have more than 1 |
I had a similar issue because there was another |
I think it can be closed with these solutions :) |
We ran into this recently. Ultimately it was because:
Our solution was to replace |
This was fixed in Jest@25 (and |
@SimenB Great! I confirmed that |
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. |
Hello dear Jest fellows,
i've been doing some maintenance stuff in stryker-mutator and came into this error:
We don't get any other error related to that so I am not sure why is it occurring (all i have done is to change dependencies from jest: ^24.9.0 to ~24.9)
Do you have any idea why it happened?
link to a PR: stryker-mutator/stryker-js#1706
link to a one of travis jobs: https://travis-ci.org/stryker-mutator/stryker/jobs/582083380
The text was updated successfully, but these errors were encountered: