You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I disabled globals injection in Jest (in favor of explicit import from "@jest/globals" to avoid types collision. I also have e2e testing framework which uses global types for it/describe and it is different). https://jestjs.io/docs/cli#--injectglobals
I tried to use jest.mock function to create an automatic mock for module (automatically wrap exports with jest.fn())
The text was updated successfully, but these errors were encountered:
lionskape
changed the title
jest.mock is not working if globals does not injected
jest.mock is not working if import something from "@jest/globals"
Apr 14, 2024
Hi.
Note: I have read that article: swc-project/swc#7435
I faced with some issues here:
jest.fn()
)Looks like similar issue was described here: #120
So, reproducing case is the same (https://github.com/Smrtnyk/swc-jest-globals-repro)
The text was updated successfully, but these errors were encountered: