Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mock "no response received" #398

Open
adamgcoulon opened this issue Oct 4, 2024 · 0 comments
Open

Unable to mock "no response received" #398

adamgcoulon opened this issue Oct 4, 2024 · 0 comments

Comments

@adamgcoulon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant