Closed exoego closed 3 months ago
@marcbachmann Could you take a look?
I'm not sure how this would fix anything. you need to import AxiosMockAdapter
instead of MockAdapter
Hmm, but
// works
import MockAdapter from 'axios-mock-adapter'
// don't
import AxiosMockAdapter from 'axios-mock-adapter'
Ah sorry, AxiosMockAdapter
works too.
In example of README, MockAdapter
is used.
So I thought AxiosMockAdapter
was a wrong name, but both is fine.
https://github.com/ctimmerm/axios-mock-adapter?tab=readme-ov-file#example
If you change all MockAdapter
occurences to AxiosMockAdapter
in the Readme and remove the webpack config change, I could approve the change 😉
@marcbachmann I see. Fixed the PR.
works too, but
AxiosMockAdapter
is a preferred term.