Skip to content

Releases: marchaos/jest-mock-extended

2.0.0

03 Aug 16:07
Compare
Choose a tag to compare
  • Changed mock() to no longer use recursive types. Only deepMock() does that now. This should reduce the tsc 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

19 May 06:58
Compare
Choose a tag to compare

Fixed using MockProxy in place of the mocked type

Bug Fixes, updated peer dependency for jest + allow for mock functions

12 Jun 14:39
21339f2
Compare
Choose a tag to compare

Added support for mockClear and mockReset

31 Jan 13:53
6179ed2
Compare
Choose a tag to compare

These accept a mock or jest.fn() and will clear / reset in accordance with Jest.mockReset / Jest.mockClear

Fix for missing lib

06 Jan 23:06
Compare
Choose a tag to compare

Fix for missing ts-essentials

Deep / Nested Mock Support + Fixes

30 Dec 16:45
Compare
Choose a tag to compare
  • Added support for deep mocks - #3
  • Added support for mock implementations - #5
  • Fixed bug where tests would hang on async use - #2