Skip to content

Commit c1b1681

Browse files
committed
issue on pulling
1 parent 78ee3d4 commit c1b1681

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: src/utilities/__tests__/findBreakingChanges-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ describe('findBreakingChanges', () => {
258258
`);
259259

260260
expect(findBreakingChanges(oldSchema, newSchema)).to.deep.equal([
261+
{
262+
type: BreakingChangeType.FIELD_REMOVED,
263+
description: 'InputType1.field2 was removed.',
264+
oldNode: oldSchema.getTypeMap()['InputType1'].getFields()['field2']
265+
.astNode,
266+
},
261267
{
262268
type: BreakingChangeType.FIELD_CHANGED_KIND,
263269
description: 'InputType1.field1 changed type from String to Int.',

Diff for: src/utilities/findBreakingChanges.js

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ function findTypeChanges(
181181
schemaChanges.push({
182182
type: BreakingChangeType.TYPE_REMOVED,
183183
description: `${oldType.name} was removed.`,
184+
oldNode: oldType.astNode ? oldType.astNode : undefined,
184185
});
185186
}
186187

0 commit comments

Comments
 (0)