Skip to content

Commit

Permalink
Prove interface description change bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Bessey committed Mar 2, 2022
1 parent 8be42c1 commit f0c3869
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/lib/graphql/schema_comparator/diff/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def setup
union MyUnion = CType | BType
interface AnInterface {
interfaceField: Int!
# I will change
descChangeField: String
}
interface AnotherInterface {
anotherInterfaceField: String
Expand Down Expand Up @@ -102,6 +104,8 @@ def setup
union MyUnion = CType | DType
interface AnInterface {
interfaceField: Int!
# I did change
descChangeField: String
}
interface AnotherInterface {
b: Int
Expand Down Expand Up @@ -162,9 +166,13 @@ def test_changes_kitchensink
"Input field `AInput.a` default changed from `1` to `1`",
"Input field `AInput.a` changed type from `String` to `Int`",
"`CType` object implements `AnInterface` interface",
"Field `AnInterface.descChangeField` description changed from `I will change` to `I did change`",
# This is broken: instead we get AnInterface twice
"Field `WithInterfaces.descChangeField` description changed from `I will change` to `I did change`",
"Field `c` was removed from object type `CType`",
"Field `interfaceField` was added to object type `CType`",
"Field `b` was added to object type `CType`",
"Field `descChangeField` was added to object type `CType`",
"Deprecation reason on field `CType.a` has changed from `whynot` to `cuz`",
"Argument `arg: Int` added to field `CType.a`",
"Default value `10` was added to argument `arg` on field `CType.d`",
Expand Down

0 comments on commit f0c3869

Please sign in to comment.