To isolate testing our callback, we need to mock this additional function by spying on it. The jest.spyOn method also returns a mocked ...
確定! 回上一頁