Skip to content

Feat: expose AxiosError instance #362

@cangSDARM

Description

@cangSDARM

Expose the internally used util.createAxiosError and provide instance wrappers for common errors such as timeout, networkerror, etc., so that various generic errors can be returned by the custom reply method.

Motivation: I want to test our internal xx-retry library, and it is necessary to REPLY at the mock level to count the actual number of backend calls. But the current reply needs to write a lot of template code to construct the timeout correctly and test the count

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions