To mock a function with Jest we use the jest.fn() function. jest.fn() can be called with an implementation function as an optional argument. If ...
確定! 回上一頁