-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Cannot use jest from @jest/globals in mock #10218
Comments
Seem to be related to #10147 |
Without a reproduction it's hard to say - @acidic9 what version of |
I managed to reproduce the error that @acidic9 ran into. @SimenB You can check out this branch https://github.com/ahnpnl/ts-jest-babel-example/tree/jest-globals and run the test in |
I am also facing this, is there any workaround? |
So what are we supposed to do?? |
I've removed |
Status here is still "missing reproduction". Please open a new issue with a proper reproduction, and we can take a look
This doesn't exist, sorry I missed it at the time |
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 attempting to use
jest.*
within ajest.mock
function, jest fails due to the variablejest
being used as an out-of-scope variable.To Reproduce
The following code fails with:
Expected behavior
Expect jest to be a whitelisted object for scoped-variables within mocks.
Link to repl or repo (highly encouraged)
None.
envinfo
The text was updated successfully, but these errors were encountered: