From f0c3869c9e6bce1da1ac7987dcc6c99d72e30f09 Mon Sep 17 00:00:00 2001 From: Matt Bessey Date: Wed, 2 Mar 2022 15:57:52 +0000 Subject: [PATCH] Prove interface description change bug --- test/lib/graphql/schema_comparator/diff/schema_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/lib/graphql/schema_comparator/diff/schema_test.rb b/test/lib/graphql/schema_comparator/diff/schema_test.rb index 83c23d2..d1a5215 100644 --- a/test/lib/graphql/schema_comparator/diff/schema_test.rb +++ b/test/lib/graphql/schema_comparator/diff/schema_test.rb @@ -30,6 +30,8 @@ def setup union MyUnion = CType | BType interface AnInterface { interfaceField: Int! + # I will change + descChangeField: String } interface AnotherInterface { anotherInterfaceField: String @@ -102,6 +104,8 @@ def setup union MyUnion = CType | DType interface AnInterface { interfaceField: Int! + # I did change + descChangeField: String } interface AnotherInterface { b: Int @@ -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`",