-
Notifications
You must be signed in to change notification settings - Fork 10
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
Is it possible to mock Apollo GQL requests? #11
Comments
There is no dedicated support for GraphQL - we dont dont use it in HL Tech, and nobody had requested such a feature (yet). However, I think you should be able to mock all your graphql requests with |
You can see the sucessful mocks for Cognito and Firebase analytics, and the creation of the Appsync mock, but the mock itself is not matched and this is where the script hangs as it cannot continue with the stubbed Auth. |
It looks like Mockiavelli is not catching these at all - I get no errors or warnings about unhandled API calls, and when I do try to handle them they are hitting the endpoint and failing as I've mocked out the Auth part of my app. Is there some additional config I need to make this work, or is it simply not possible?
The text was updated successfully, but these errors were encountered: