We can mock the axios library using the jest.mock() function and providing a mock factory method. Axios is an es6 class, so mocking axios will be similar to ...
確定! 回上一頁