Releases: marchaos/jest-mock-extended
Releases · marchaos/jest-mock-extended
2.0.0
- Changed
mock()
to no longer use recursive types. OnlydeepMock()
does that now. This should reduce thetsc
compile time for large projects. - Added
stub()
for usecases where you need a mock object with no expectations. - Added support for Jest 27, although blocked by jestjs/jest#11677
Potential backwards compatibility issues for use of mock() where deepMock() may be required. This may result in TS errors.
1.0.15
Bug Fixes, updated peer dependency for jest + allow for mock functions
Added support for mockClear and mockReset
These accept a mock or jest.fn() and will clear / reset in accordance with Jest.mockReset / Jest.mockClear
Fix for missing lib
Fix for missing ts-essentials