From 64a05e40c35c9257234a8b2caf4dbe4c59e8e225 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Wed, 31 Jan 2024 16:43:46 +0000 Subject: [PATCH] Update tests to execute code in subpackages --- test_in_docker.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test_in_docker.sh b/test_in_docker.sh index 45dce52..d670b67 100755 --- a/test_in_docker.sh +++ b/test_in_docker.sh @@ -28,7 +28,11 @@ else echo "import { util } from '@aws-appsync/utils';" > main.mjs echo "console.log('id: ', util.autoId());" >> main.mjs echo "console.log('toDynamoDB: ', util.dynamodb.toDynamoDB('test'));" >> main.mjs + echo "import { get } from '@aws-appsync/utils/dynamodb';" >> main.mjs + echo "console.log({ get: get({ key: 10 }) });" >> main.mjs + echo "import { select } from '@aws-appsync/utils/rds';" >> main.mjs + echo "console.log({ value: select(10) });" >> main.mjs echo "Checking package:" - node main.mjs + node --experimental-specifier-resolution=node main.mjs fi