Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
MIT License
Bot releases are visible (Hide)
Bumped ts-essentials
Published by marchaos about 1 year ago
Fixed Deep Mock perf issue with https://github.com/marchaos/jest-mock-extended/pull/123
Published by marchaos over 1 year ago
Published by marchaos over 1 year ago
Published by marchaos about 2 years ago
Allow overriding calledWithFn - see https://github.com/marchaos/jest-mock-extended/pull/96
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.
Published by marchaos over 2 years ago
Published by marchaos over 2 years ago
Support for Jest 28
Published by marchaos over 2 years ago
Fixes:
Published by marchaos about 3 years ago
PRs:
Published by marchaos about 3 years ago
mock()
to no longer use recursive types. Only deepMock()
does that now. This should reduce the tsc
compile time for large projects.stub()
for usecases where you need a mock object with no expectations.Potential backwards compatibility issues for use of mock() where deepMock() may be required. This may result in TS errors.
Published by marchaos over 3 years ago
Fixed using MockProxy in place of the mocked type
Published by marchaos over 4 years ago
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
Published by marchaos almost 5 years ago
Fix for missing ts-essentials
Published by marchaos almost 5 years ago