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())
Hi.
Note: I have read that article: https://github.com/swc-project/swc/issues/7435
I faced with some issues here:
jest.fn()
)Looks like similar issue was described here: https://github.com/swc-project/jest/issues/120 So, reproducing case is the same (https://github.com/Smrtnyk/swc-jest-globals-repro)