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
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
type Query {
|
||||
f: String
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
type Query {
|
||||
f: String
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
type Query {
|
||||
user: User
|
||||
}
|
||||
|
||||
type User {
|
||||
id: ID!
|
||||
name: String!
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
type Query {
|
||||
user: User
|
||||
}
|
||||
|
||||
type User {
|
||||
id: ID!
|
||||
name: String!
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
type Query {
|
||||
f: String
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
type Query { f: String }
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
type Query {
|
||||
f: String
|
||||
user: User
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user