mockFn.mockReturnValue(value) ... Accepts a value that will be returned whenever the mock function is called. const mock = jest.fn(); mock.mockReturnValue(42); ...
確定! 回上一頁