timkindberg / jest-when

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

Document that when accepts the output of jest.spyOn #21

Closed quassnoi closed 5 years ago

quassnoi commented 5 years ago

It works now, I'm just adding the tests and documentation for that in a PR.

Types are broken at the moment in @typed/jest-when (as far as TypeScript is concerned, the output of jest.spyOn is not a valid input for when).

We need to document that it works, so that I could link documentation in a PR to DefinitelyTyped.