Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
mock()
to no longer use recursive types. Only deepMock()
does that now. This should reduce the tsc
compile time for large projects.stub()
for usecases where you need a mock object with no expectations.Potential backwards compatibility issues for use of mock() where deepMock() may be required. This may result in TS errors.
Fixed using MockProxy in place of the mocked type
These accept a mock or jest.fn() and will clear / reset in accordance with Jest.mockReset / Jest.mockClear
Fix for missing ts-essentials