Apr 16, 2024 1 min read whatever The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables. The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables.