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

Integration tests #279

Merged
merged 7 commits into from
Aug 9, 2018
Merged

Integration tests #279

merged 7 commits into from
Aug 9, 2018

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Aug 9, 2018

Converts the test directory into an integration test server, moving all the tests that were into it into jest using apollo client.

I've also added a check that fetches the schema using graphql-cli and compares the fetched schema against an expected output. This should prevent future regressions like #255

Caught a few bugs in the process:

  • introspection api was returning NOT_NULL instead NON_NULL
  • introspection api was mutating the schema types, so the second introspection query would have no not null fields.

@vektah vektah merged commit 5c379a3 into master Aug 9, 2018
@vektah vektah deleted the integration-tests branch August 9, 2018 07:15
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant