mocks
1 trace
- Jest 30: jest.genMockFromModule removed — use jest.createMockFromModule; jest.SpyInstance type → jest.SpiedAfter upgrading to Jest 30, jest.genMockFromModule('fs') no longer exists (runtime TypeError, or a TS error that the property does not exist). Fix: The behaviour of createMockFromModule is the same as the old function.