axios-mock-adapter
                                
                                 axios-mock-adapter copied to clipboard
                                
                                    axios-mock-adapter copied to clipboard
                            
                            
                            
                        Axios adapter that allows to easily mock requests
Hi, I'm looking for a way to mock an upload call: ``` axios.post(url, {file: myFile}, { headers: { 'Content-Type': `multipart/form-data` } } ``` `config.data.file` is empty
i have the following code in my program: ``` return fetchFromMock(src, fetchingOptions) .catch(() => fetchFromNetwork(src, fetchingOptions)) ``` for every "resource" in my application, i decide in build time if it...
when i send a post request which be passed to network,the data in body lost. And it is normal after i close mock. ver: 1.9.0, os: macOS, browser: Chrome 59.0.3071.104
```js // error code import Axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; const mock = new MockAdapter(Axios); // start mock mock.onAny().passThrough(); // end mock Axios.get('/host/path') ``` [error pic](https://pic.51zhangdan.com/u51/storage/71/7a3f2d1b-4831-1c61-ac6b-04e343d3fe61.png) ```js //...
Are there any plans to support axios 1.x? I get a huge list of incompatible types when using axios 1.x (or I am doing something wrong). 
Everything is works perfectly but js-dom is also sending a preflight request with is getting a 403 response. Any idea on how to handle it?
I tried to update `axios` to `1.2.4` in my project three months ago. But it failed. When I launched `Jest`, I got one of these errors: `onGet/onPost/reset is not defined` ...
This will fix the regex use case like issue describe here #54
In order to mock auth route I need to provide a custom header in the reponse that's returned by the server. As far as I can tell, only body of...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.12.1 to 7.23.2. Release notes Sourced from @babel/traverse's releases. v7.23.2 (2023-10-11) NOTE: This release also re-publishes @babel/core, even if it does not appear in the linked release...