marchaos / jest-mock-extended

Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
MIT License
810 stars 56 forks source link

Add support for providing fallbackMockImplementation #110

Closed skovhus closed 1 year ago

skovhus commented 1 year ago

Solves https://github.com/marchaos/jest-mock-extended/issues/106 https://github.com/marchaos/jest-mock-extended/issues/102

This PR adds support for providing a fallbackMockImplementation for mock and deepMock. My primary motivation is to throw in case a mock implementation is not provided.

skovhus commented 1 year ago

@marchaos do you have time to review this?

marchaos commented 1 year ago

looks good, thanks!

skovhus commented 1 year ago

@marchaos thanks! I'm curious when you plan to release it?

marchaos commented 1 year ago

hold tight, just releasing now in 3.0.2

marchaos commented 1 year ago

Just released 3.0.2 - might take a minute to be available in npm, but let me know if you can access it!