trying to coax the type of the mocked, promisified version of a function that provides util.promisify.custom out of the type system, and I'm failing :(

ughhh, I've gotten to the bottom of this and it's a frustrating case of 'well, who's fault is it really now'.

https://github.com/jestjs/jest/issues/14511

It's just hacks upon odd design decisions upon weird choices. sometimes this ecosystem really is quite frustrating.

[Bug]: automocking node functions with custom promisified implementation doesn't work and infers wrong types · Issue #14511 · jestjs/jest

Version 29.6.4 Steps to reproduce Clone https://github.com/leftshift/jest-promisify-mre npm install npx jest Expected behavior The first test using mockResolvedValue passes. The second test impleme...

GitHub