Skip to content

Commit

Permalink
Update tests to execute code in subpackages
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Jan 31, 2024
1 parent 6bf06fa commit 64a05e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64a05e4

Please sign in to comment.