The way jest handles mocking is through a mock function. A mock function is created ... url: 'https://some-url.com/api',. method: 'get',.
確定! 回上一頁