marchaos / jest-mock-extended

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

update handler for function #60

Closed BruTyler closed 2 years ago

BruTyler commented 3 years ago

This patch provides additional Proxy-handler behavior:

Solution for a bug: https://github.com/marchaos/jest-mock-extended/issues/59

marchaos commented 3 years ago

Hey. Thanks for the PR. Are you able to add a test that fails prior to this change?

BruTyler commented 3 years ago

@marchaos, Sure, here the test about the Date object.

cerireyhan commented 3 years ago

Is there any plans on merging this? It would make it a lot easier to test with dates.

marchaos commented 2 years ago

Released in 2.0.4