Fix bug where timeout() and timeoutOnce() would throw ECONNABORTEDinstead of the correct ETIMEDOUT, when transitional.clarifyTimeoutError was set to true.
Relevant Axios documentation:
// throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
clarifyTimeoutError: false,
Fix bug where
timeout()
andtimeoutOnce()
would throwECONNABORTED
instead of the correctETIMEDOUT
, whentransitional.clarifyTimeoutError
was set totrue
.Relevant Axios documentation:
Source https://github.com/axios/axios/blob/v1.x/README.md#request-config.
Closes https://github.com/ctimmerm/axios-mock-adapter/issues/336.