axios-mock-adapter icon indicating copy to clipboard operation
axios-mock-adapter copied to clipboard

Unable to mock "no response received"

Open adamgcoulon opened this issue 1 year ago • 1 comments

Is it possible to mock a lack of a response? I'd like to test Axios error handling when a request is made but the server does not respond. If I use .timeout(), the request object on the AxiosError is not present.

https://axios-http.com/docs/handling_errors

adamgcoulon avatar Oct 04 '24 18:10 adamgcoulon