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

Refactor Validation Tests JSON #636

Merged

Conversation

dackroyd
Copy link
Contributor

@dackroyd dackroyd commented Apr 3, 2024

Schemas defined in the tests.json are highly dependent on the order that graphql-js tests register them. This results in re-ordering of the schemas and updates to many/all of the schema index values referring to them in tests when new schemas are inserted.

Attempting to add some stability to the JSON for future changes here by sorting the schemas, and referring to them by a SHA id of the schema content, rather than index ordering. This results in a large change here but hopefully smaller changes when adding and updating test cases from graphql-js in the future.

Schemas defined in the tests.json are highly dependent on the
order that graphql-js tests register them. This results in re-ordering
of the schemas and updates to many/all of the schema index values
referring to them in tests when new schemas are inserted.

Attempting to add some stability to the JSON for future changes here
by sorting the schemas, and referring to them by a SHA id of the schema
content, rather than index ordering. This results in a large change here
but hopefully smaller changes when adding and updating test cases
from graphql-js in the future.
@pavelnikolov pavelnikolov added this pull request to the merge queue Apr 3, 2024
Merged via the queue into graph-gophers:master with commit 8649199 Apr 3, 2024
2 checks passed
@dackroyd dackroyd deleted the refactor-validation-test-json branch April 3, 2024 13:45
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.

2 participants