axios-mock-adapter
axios-mock-adapter copied to clipboard
Axios adapter that allows to easily mock requests
I originally posted on [StackOverflow](https://stackoverflow.com/questions/78958075/cannot-mock-post-api-call-with-axios-mock-adapter), but I didn't get any answers, and I have discovered a new side of this problem too. So, I thought I might have more luck...
resolves https://github.com/ctimmerm/axios-mock-adapter/issues/407
https://github.com/softonic/axios-retry/pull/303/files Undefined headers make `axios-mock-adapter` incompatible with `axios-retry` because it assumes that `error.response.headers` will not be `undefined` if `error.response` is present. I'm trying to get this fixed here too, but...
I updated to v2.1.0 today and now I am getting multiple compile errors with "not assignable to type MockArrayResponse". I see from the [releases page](https://github.com/ctimmerm/axios-mock-adapter/releases/tag/v2.1.0) that `MockResponse` types have been...
Bumps [axios](https://github.com/axios/axios) from 1.7.4 to 1.8.2. Release notes Sourced from axios's releases. Release v1.8.2 Release notes: Bug Fixes http-adapter: add allowAbsoluteUrls to path building (#6810) (fb8eec2) Contributors to this release...
Hello, I'm wondering if you'd accept a PR to add the ability for the `onNoMatch` option to accept a function callback. This could be very helpful for making integrations with...
If set, I want to be able to control the responseURL myself. This is used to test certain scenarios where the request was redirected.