... const resp = {data: users}; axios.get.mockResolvedValue(resp); Imagine we wish to test the following function: function forEach(items, callback) { for ...
確定! 回上一頁