@@ -676,38 +676,38 @@ describe('findBreakingChanges', () => {
676
676
description : 'TypeThatGetsRemoved was removed.' ,
677
677
} ,
678
678
{
679
- type : BreakingChangeType . TYPE_CHANGED_KIND ,
679
+ type : BreakingChangeType . ARG_CHANGED_KIND ,
680
680
description :
681
- 'TypeThatChangesType changed from an Object type to an Interface type .' ,
681
+ 'ArgThatChanges.field1 arg id has changed type from Int to String .' ,
682
682
} ,
683
683
{
684
- type : BreakingChangeType . FIELD_REMOVED ,
685
- description : 'TypeThatHasBreakingFieldChanges.field1 was removed.' ,
684
+ type : BreakingChangeType . VALUE_REMOVED_FROM_ENUM ,
685
+ description :
686
+ 'VALUE0 was removed from enum type EnumTypeThatLosesAValue.' ,
686
687
} ,
687
688
{
688
- type : BreakingChangeType . FIELD_CHANGED_KIND ,
689
+ type : BreakingChangeType . INTERFACE_REMOVED_FROM_OBJECT ,
689
690
description :
690
- 'TypeThatHasBreakingFieldChanges.field2 changed type from String to Boolean .' ,
691
+ 'TypeThatLooseInterface1 no longer implements interface Interface1 .' ,
691
692
} ,
692
693
{
693
694
type : BreakingChangeType . TYPE_REMOVED_FROM_UNION ,
694
695
description :
695
696
'TypeInUnion2 was removed from union type UnionTypeThatLosesAType.' ,
696
697
} ,
697
698
{
698
- type : BreakingChangeType . VALUE_REMOVED_FROM_ENUM ,
699
+ type : BreakingChangeType . TYPE_CHANGED_KIND ,
699
700
description :
700
- 'VALUE0 was removed from enum type EnumTypeThatLosesAValue .' ,
701
+ 'TypeThatChangesType changed from an Object type to an Interface type .' ,
701
702
} ,
702
703
{
703
- type : BreakingChangeType . ARG_CHANGED_KIND ,
704
- description :
705
- 'ArgThatChanges.field1 arg id has changed type from Int to String.' ,
704
+ type : BreakingChangeType . FIELD_REMOVED ,
705
+ description : 'TypeThatHasBreakingFieldChanges.field1 was removed.' ,
706
706
} ,
707
707
{
708
- type : BreakingChangeType . INTERFACE_REMOVED_FROM_OBJECT ,
708
+ type : BreakingChangeType . FIELD_CHANGED_KIND ,
709
709
description :
710
- 'TypeThatLooseInterface1 no longer implements interface Interface1 .' ,
710
+ 'TypeThatHasBreakingFieldChanges.field2 changed type from String to Boolean .' ,
711
711
} ,
712
712
{
713
713
type : BreakingChangeType . DIRECTIVE_REMOVED ,
@@ -972,11 +972,6 @@ describe('findDangerousChanges', () => {
972
972
` ) ;
973
973
974
974
expect ( findDangerousChanges ( oldSchema , newSchema ) ) . to . deep . equal ( [
975
- {
976
- type : DangerousChangeType . TYPE_ADDED_TO_UNION ,
977
- description :
978
- 'TypeInUnion2 was added to union type UnionTypeThatGainsAType.' ,
979
- } ,
980
975
{
981
976
type : DangerousChangeType . VALUE_ADDED_TO_ENUM ,
982
977
description : 'VALUE2 was added to enum type EnumType1.' ,
@@ -991,6 +986,11 @@ describe('findDangerousChanges', () => {
991
986
description :
992
987
'Interface1 added to interfaces implemented by TypeThatGainsInterface1.' ,
993
988
} ,
989
+ {
990
+ type : DangerousChangeType . TYPE_ADDED_TO_UNION ,
991
+ description :
992
+ 'TypeInUnion2 was added to union type UnionTypeThatGainsAType.' ,
993
+ } ,
994
994
] ) ;
995
995
} ) ;
996
996
0 commit comments