Mock Axios with Jest using successful and error response. ... { id: 2 }], }, }; return Promise.resolve(myResponse); }); mockedAxios.get.
確定! 回上一頁