Jest Mock Extended Versions Save

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

3.0.5

9 months ago

3.0.4

1 year ago
  • Updated jest dependencies
  • Updated typescript peerDependencies to allow for typescript 5.*

3.0.1

1 year ago

Allow overriding calledWithFn - see https://github.com/marchaos/jest-mock-extended/pull/96

3.0.0

1 year ago
mockDeep({ funcPropSupport: true });

however this comes with a recursive performance cost. We hope to address this in the future.

2.0.7

1 year ago

Fixes

2.0.6

2 years ago

Support for Jest 28

2.0.5

2 years ago

Fixes:

2.0.4

2 years ago

PRs:

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.