Skip to content

Commit d496957

Browse files
authored
chore: fix typo in INTERFACE_OBJECT_USAGE_ERROR message (#3431)
1 parent f0c880a commit d496957

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composition-js/src/__tests__/compose.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3787,7 +3787,7 @@ describe('composition', () => {
37873787
expect(result.errors).toBeDefined();
37883788
expect(errors(result)).toStrictEqual([[
37893789
'INTERFACE_OBJECT_USAGE_ERROR',
3790-
'Type "I" is declared with @interfaceObject in all the subgraphs in which is is defined (it is defined in subgraphs "subgraphA" and "subgraphB" but should be defined as an interface in at least one subgraph)'
3790+
'Type "I" is declared with @interfaceObject in all the subgraphs in which it is defined (it is defined in subgraphs "subgraphA" and "subgraphB" but should be defined as an interface in at least one subgraph)'
37913791
]]);
37923792
});
37933793

composition-js/src/merging/merge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ class Merger {
878878
// leading to that type. But the error here is a bit more "direct"/user friendly than what post-merging
879879
// validation would return, so we make this a hard error, not just a warning.
880880
this.errors.push(ERRORS.INTERFACE_OBJECT_USAGE_ERROR.err(
881-
`Type "${itfObjectType}" is declared with @interfaceObject in all the subgraphs in which is is defined (it is defined in ${printSubgraphNames(subgraphsWithType.map((s) => s.name))} but should be defined as an interface in at least one subgraph)`,
881+
`Type "${itfObjectType}" is declared with @interfaceObject in all the subgraphs in which it is defined (it is defined in ${printSubgraphNames(subgraphsWithType.map((s) => s.name))} but should be defined as an interface in at least one subgraph)`,
882882
{ nodes: sourceASTs(...subgraphsWithType.map((s) => s.schema.type(itfObjectType))) },
883883
));
884884
}

0 commit comments

Comments
 (0)