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

fix: allow objects as a parameter in the 'calledWith' method #127

Open maxy9 opened 9 months ago

maxy9 commented 9 months ago

The "Features" section of the README says:

calledWith() extension to provide argument specific expectations, which works for objects and functions.

but the calledWith extension does not match object parameters correctly, as per Issue #118, so this is to address that.