-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Example Axios client Testing #1199
Comments
I guess I am trying to find out how to mock So, it looks like it comes down how to mock I have this so far, but the client seems to use different methods, so this does not work.
|
Please can we see an example of how to unit test (i.e. with Jest) how to verify a call was made to one of the generated services? |
Hi @jezzsantos, I've added this to the documentation/examples backlog, but unlikely to be addressed any time soon. You might also try your luck in https://github.com/orgs/hey-api/discussions, though I am not sure if anyone will give you a reply! |
Description
Please can you provide an example of testing some code that uses one of the generated services, when using the axios client?
Ideally, showing how to mock axios under the covers (i.e. using Jest)
The text was updated successfully, but these errors were encountered: