To mock an API call in a function, you just need to do these 3 steps: 1. Import the module you want to mock into your test file. 2. jest.mock() ...
確定! 回上一頁