axios-mock-adapter
axios-mock-adapter copied to clipboard
Unable to mock "no response received"
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