我使用了axios-mock-adapter。 ... top level functions, such as get, put, delete and post: jest.mock("axios"); // ... test("good response", () => { axios.get.
確定! 回上一頁