jest-mock-extended

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

MIT License

Downloads
3.7M
Stars
835
Committers
26

Bot releases are visible (Hide)

jest-mock-extended - 3.0.7 Latest Release

Published by marchaos 6 months ago

Bumped ts-essentials

jest-mock-extended - 3.0.5

Published by marchaos about 1 year ago

jest-mock-extended - 3.0.4

Published by marchaos over 1 year ago

  • Updated jest dependencies
  • Updated typescript peerDependencies to allow for typescript 5.*
jest-mock-extended - 3.0.2

Published by marchaos over 1 year ago

jest-mock-extended - 3.0.1

Published by marchaos about 2 years ago

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

jest-mock-extended - 3.0.0

Published by marchaos about 2 years ago

mockDeep({ funcPropSupport: true });

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

jest-mock-extended - 2.0.7

Published by marchaos over 2 years ago

Fixes

jest-mock-extended - 2.0.6

Published by marchaos over 2 years ago

Support for Jest 28

jest-mock-extended - 2.0.5

Published by marchaos over 2 years ago

Fixes:

jest-mock-extended - 2.0.4

Published by marchaos about 3 years ago

PRs:

jest-mock-extended - 2.0.0

Published by marchaos about 3 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.

jest-mock-extended - 1.0.15

Published by marchaos over 3 years ago

Fixed using MockProxy in place of the mocked type

jest-mock-extended - Added support for mockClear and mockReset

Published by marchaos over 4 years ago

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

jest-mock-extended - Fix for missing lib

Published by marchaos almost 5 years ago

Fix for missing ts-essentials

jest-mock-extended - Deep / Nested Mock Support + Fixes

Published by marchaos almost 5 years ago