I have a problem with jest mockResolvedValue. Indeed i\'m defining a spy to my function and then mock its result to return a value instead of calling the function. However,