Skip to content

Commit d987492

Browse files
findBreakingChanges: unify how changes are collected (#1907)
1 parent f55c2a3 commit d987492

File tree

2 files changed

+102
-109
lines changed

2 files changed

+102
-109
lines changed

src/utilities/__tests__/findBreakingChanges-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -973,23 +973,23 @@ describe('findDangerousChanges', () => {
973973

974974
expect(findDangerousChanges(oldSchema, newSchema)).to.deep.equal([
975975
{
976-
type: DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE,
976+
type: DangerousChangeType.TYPE_ADDED_TO_UNION,
977977
description:
978-
'Type1.field1 arg argThatChangesDefaultValue has changed defaultValue.',
978+
'TypeInUnion2 was added to union type UnionTypeThatGainsAType.',
979979
},
980980
{
981981
type: DangerousChangeType.VALUE_ADDED_TO_ENUM,
982982
description: 'VALUE2 was added to enum type EnumType1.',
983983
},
984984
{
985-
type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT,
985+
type: DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE,
986986
description:
987-
'Interface1 added to interfaces implemented by TypeThatGainsInterface1.',
987+
'Type1.field1 arg argThatChangesDefaultValue has changed defaultValue.',
988988
},
989989
{
990-
type: DangerousChangeType.TYPE_ADDED_TO_UNION,
990+
type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT,
991991
description:
992-
'TypeInUnion2 was added to union type UnionTypeThatGainsAType.',
992+
'Interface1 added to interfaces implemented by TypeThatGainsInterface1.',
993993
},
994994
]);
995995
});

0 commit comments

Comments
 (0)