-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify errors tests a bit so they don't all have to write a schema (#…
…196) Some of the errors tests need to have their own schema, so the schema can do something weird (or even be entirely invalid!). But most can still share a schema. In this commit I have those indeed share a schema, to avoid having to have a bunch of copies of mostly the same schema. While doing so I noticed one error whose location wasn't very useful, and fixed it. Test plan: make check
- Loading branch information
1 parent
39cd158
commit d4ec64f
Showing
10 changed files
with
26 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
generate/testdata/errors/ConflictingDirectiveArguments.schema.graphql
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
generate/testdata/errors/ConflictingDirectives.schema.graphql
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
generate/testdata/errors/ConflictingTypeNameAndForFieldBind.schema.graphql
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
generate/testdata/errors/ConflictingTypeNameAndLocalBind.schema.graphql
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ctingTypeNameAndGlobalBind.schema.graphql → generate/testdata/errors/schema.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type Query { | ||
f: String | ||
user: User | ||
} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
generate/testdata/snapshots/TestGenerateErrors-ConflictingTypeNameAndGlobalBind-graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
testdata/errors/ConflictingTypeNameAndGlobalBind.schema.graphql:8: typename option conflicts with global binding for ValidScalar; use `bind: "-"` to override it | ||
testdata/errors/ConflictingTypeNameAndGlobalBind.graphql:4: typename option conflicts with global binding for ValidScalar; use `bind: "-"` to override it |