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

Correct pass fallbackMockImplementation #111

Closed skovhus closed 1 year ago

skovhus commented 1 year ago

Fix regression introduced in https://github.com/marchaos/jest-mock-extended/pull/110

The test cases didn't cover the use case of using mockReturnValue.

I'm curious if there is a better way of implementing this fallbackMockImplementation – it turned out to be more complex that I wanted it to be.

FYI @marchaos

marchaos commented 1 year ago

I'll merge this for now, but will have a think.

marchaos commented 1 year ago

3.0.3 published if you want to test that out.