Skip to content

Commit

Permalink
Add a test where validation happens at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed May 11, 2021
1 parent 9e4eea9 commit 7cafefb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/graphql/schema/build_from_definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,25 @@ def assert_schema_and_compare_output(definition)
}
directive @foo(arg: InputA) on FIELD
directive @bar(arg: InputA) on FIELD_DEFINITION
type Hello {
int: Int
int: Int @bar(arg: { int: 1 })
}
input InputA {
value: InputB
value2: InputC
int: Int
}
input InputB {
value: InputA
}
input InputC {
value: InputB
}
SCHEMA

parsed_schema = GraphQL::Schema.from_definition(schema)
Expand Down

0 comments on commit 7cafefb

Please sign in to comment.