axios-mock-adapter
axios-mock-adapter copied to clipboard
support for AbortController
From https://axios-http.com/docs/cancellation:
Starting from v0.22.0 Axios supports AbortController to cancel requests in fetch API way.
But as far as I can tell, this library only mocks the old cancelToken-based API: https://github.com/ctimmerm/axios-mock-adapter/issues/59
Would you be open to also supporting AbortController?
Spent an hour setting up this library only to realize that it did not even support the AbortController.