The return type of compare method is a Promise<boolean>. When I write this line "jest.spyOn(bcrypt, 'compare').mockReturnValueOnce()", the ...
確定! 回上一頁