DEV Community

Discussion on: Mocking ES6 class methods with Jest!

Collapse
 
jab3z profile image
jab3z

Is there a reason why using

mockGetById.mockReturnValue(Promise.resolve(expectedProduct))

and not .resolves?