jest.fn() is a mock function that you can modify the behavior, most common ones are mockImplementation , mockReturnValue and mockReturnValueOnce .
確定! 回上一頁