timkindberg / jest-when

Jest support for mock argument-matched return values.
MIT License
738 stars 39 forks source link

Fix implementation function context #98

Closed 3y3 closed 2 years ago

3y3 commented 2 years ago

Looks like problem starts from this commit https://github.com/timkindberg/jest-when/commit/7061df463e7798861cd56fb923bea7528ee2d5e9

This is not equivalent replacement. returnValue - doesn't expect context, but mockImplementation does

3y3 commented 2 years ago

@timkindberg can we merge this and publish new version?

timkindberg commented 2 years ago

v3.5.2

timkindberg commented 2 years ago

Thank you for the contribution @3y3 !