You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is an issue with the package; you probably just have a different version of Axios installed (or maybe two different versions within your monorepo?).
This setup works:
import axios from 'axios';
import AxiosMockAdapter from 'axios-mock-adapter';
const axiosMock = new AxiosMockAdapter(axios);
Tested with axios@1.7.7 and axios-mock-adapter@2.1.0.
"axios": "^1.7.7",
"axios-mock-adapter": "^2.0.0",
The axios version type is AxiosStatic, not AxiosInstance
The text was updated successfully, but these errors were encountered: