Skip to content

Commit a3a2d57

Browse files
committed
Fix compatibility issues after upstream merge
- Add composite: true to emitter-framework tsconfig for project references - Add type narrowing in visibility test to fix TypeScript error
1 parent 44be65b commit a3a2d57

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/emitter-framework/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"strict": true,
88
"skipLibCheck": true,
99
"isolatedModules": true,
10+
"composite": true,
1011
"declaration": true,
1112
"sourceMap": true,
1213
"declarationMap": true,

packages/graphql/test/mutation-engine/visibility.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ describe("GraphQL Mutation Engine - Visibility Filtering", () => {
184184
expect(mutation.mutationNode.isReplaced).toBe(true);
185185
const replacement = mutation.mutationNode.replacementNode!.mutatedType;
186186
expect(replacement.kind).toBe("Scalar");
187-
expect(replacement.name).toBe("ReadOnlyModelInput");
187+
if (replacement.kind === "Scalar") {
188+
expect(replacement.name).toBe("ReadOnlyModelInput");
189+
}
188190
});
189191

190192
it("strips @compose from input variants to avoid spurious validation", async () => {

0 commit comments

Comments
 (0)