Closed moltar closed 3 years ago
They are not really part of the API - we just proxy those on to jest, so would be difficult without replicating the jest API.
Would it be possible to create additional generic methods alongside mockReturnValue
? Something like extendedMockReturnValue
?
It would be good to be able to override the return types via generic param to the
mockReturnValue
andmockResolvedValue
.The use case is that I am mocking a third party library (
aws-sdk
), which has a very complicated return type, and I don't actually care about all of the meta return values. I only need to mock the value that I care about in my application.Thanks.