From 7166f34cfdca9862dfbae1777603a1bab4c818f6 Mon Sep 17 00:00:00 2001 From: Ian Saultz <52051793+atierian@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:56:53 -0400 Subject: [PATCH] update generation snapshots --- .../amplify-graphql-generation-transformer.test.ts.snap | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/amplify-graphql-generation-transformer/src/__tests__/__snapshots__/amplify-graphql-generation-transformer.test.ts.snap b/packages/amplify-graphql-generation-transformer/src/__tests__/__snapshots__/amplify-graphql-generation-transformer.test.ts.snap index 253d70f261..267576cd34 100644 --- a/packages/amplify-graphql-generation-transformer/src/__tests__/__snapshots__/amplify-graphql-generation-transformer.test.ts.snap +++ b/packages/amplify-graphql-generation-transformer/src/__tests__/__snapshots__/amplify-graphql-generation-transformer.test.ts.snap @@ -304,6 +304,10 @@ export function response(ctx) { } const response = toolUse.input.value; + if (typeof response === 'string') { + return JSON.parse(response); + } + return response; }" `; @@ -404,6 +408,10 @@ export function response(ctx) { } const response = toolUse.input.value; + if (typeof response === 'string') { + return JSON.parse(response); + } + return response; }" `;