From 8453633bfcdf892c24837667ad5f26838357d8b7 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Wed, 29 Nov 2023 10:54:17 -0800 Subject: [PATCH] json parse lambda output --- .../src/test-project-setup/data_storage_auth_with_triggers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/integration-tests/src/test-project-setup/data_storage_auth_with_triggers.ts b/packages/integration-tests/src/test-project-setup/data_storage_auth_with_triggers.ts index 61fb522c0a..b5d19abe61 100644 --- a/packages/integration-tests/src/test-project-setup/data_storage_auth_with_triggers.ts +++ b/packages/integration-tests/src/test-project-setup/data_storage_auth_with_triggers.ts @@ -158,7 +158,9 @@ class DataStorageAuthWithTriggerTestProject extends TestProjectBase { const response = await this.lambdaClient.send( new InvokeCommand({ FunctionName: lambdas[0] }) ); - const responsePayload = response.Payload?.transformToString(); + const responsePayload = JSON.parse( + response.Payload?.transformToString() || '' + ); // check expected response assert.equal(