Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/execute-localstack-test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export TEST_URL=$(jq -r .CdkStack.GraphQLURL outputs.json)
export TEST_API_KEY=$(jq -r .CdkStack.ApiKey outputs.json)

log "Accessing URL ${TEST_URL} with api key ${TEST_API_KEY}"
curl \
RESULT=$(curl \
--connect-timeout 30 \
--retry 10 \
--retry-delay 6 \
Expand All @@ -33,5 +33,10 @@ curl \
-H "Content-Type:application/json" \
$TEST_URL \
-d '{"query": "query { foo }"}'

)
foo=$(jq .data.foo <<< "$RESULT")
errors=$(jq .errors <<< "$RESULT")
if [[ "$errors" != "null" || "$foo" != '"my-string"' ]]; then
exit 1
fi
)
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This package provides an implementation for the `@aws-appsync/utils` package that is available on AWS.

## Changelog:

- v0.1.0: first pinned version of the library

> [!TIP]
> To ensure you are using the latest version of this package with LocalStack, start LocalStack with the environment variable
>
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"description": "Implementation of the AppSync utils helpers",
"type": "module",
"main": "index.js",
"exports": {
".": "./index.js",
"./rds": "./rds/index.js",
"./dynamodb": "./dynamodb/index.js"
},
"scripts": {
"test:aws": "NODE_OPTIONS=\"--experimental-vm-modules\" TEST_TARGET=AWS_CLOUD jest -u",
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --ci",
Expand Down