From 67c82165f58ace597cb25aac61df8588752579e4 Mon Sep 17 00:00:00 2001 From: Andy Ingram Date: Thu, 20 Mar 2025 18:25:58 +0000 Subject: [PATCH] Fix selection aliases in usage comment above MSW mock handlers --- packages/plugins/typescript/msw/src/visitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/typescript/msw/src/visitor.ts b/packages/plugins/typescript/msw/src/visitor.ts index 1f32d6b64..31c700928 100644 --- a/packages/plugins/typescript/msw/src/visitor.ts +++ b/packages/plugins/typescript/msw/src/visitor.ts @@ -67,7 +67,7 @@ export class MSWVisitor extends ClientSideBaseVisitor sel.name.value).join(', '); + const selections = node.selectionSet.selections.map(sel => (sel.alias || sel.name).value).join(', '); const variables = node.variableDefinitions.map(def => def.variable.name.value).join(', '); return `/**