You can mock a function with jest.fn or mock a module with jest.mock , but my preferred method of mocking is by using jest.spyOn . Tracking ...
確定! 回上一頁