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
With babel-jest it seems like jest.mock() calls are hoisted to the top of the file. swc seems to have this transformation as well, so no issue with that.
The problem occurs when the jest.mock() calls depends on other variable, for instance:
What happens is that when doing the hoisting for mock, the babel plugin checks variables that are being used in the mock factory to ensure that everything being used will be within scope after hoisting.
nvh95, silverlight513, caribou-code, Thiry1, MagnusHJensen and 7 more