-
mockResolvedValue
is for asynchronous functions that return promises. Instead,mockReturnValueOnce
is for synchronous functions.
mockResolvedValue
is for asynchronous functions that return promises. Instead, mockReturnValueOnce
is for synchronous functions.