Jest Mock Extended Versions Save

Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended

2.0.0

2 years ago
  • 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 https://github.com/facebook/jest/issues/11677

Potential backwards compatibility issues for use of mock() where deepMock() may be required. This may result in TS errors.

1.0.15

3 years ago

Fixed using MockProxy in place of the mocked type

1.0.8

4 years ago

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

1.0.7

4 years ago

Fix for missing ts-essentials

1.0.6

4 years ago