diff --git a/src/__mocks__/axios.ts b/src/__mocks__/axios.ts index f94982a..cd49a0e 100644 --- a/src/__mocks__/axios.ts +++ b/src/__mocks__/axios.ts @@ -2,7 +2,6 @@ import { AxiosStatic } from 'axios' const mockAxios = jest.genMockFromModule('axios') as AxiosStatic -// this is the key to fix the axios.create() undefined error! mockAxios.create = jest.fn(() => mockAxios) export default mockAxios