jest.spyOn does the same thing but allows restoring the original function,jest.mock does this automatically for all functions in a module ...
確定! 回上一頁