File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export TEST_URL=$(jq -r .CdkStack.GraphQLURL outputs.json)
23
23
export TEST_API_KEY=$( jq -r .CdkStack.ApiKey outputs.json)
24
24
25
25
log " Accessing URL ${TEST_URL} with api key ${TEST_API_KEY} "
26
- curl \
26
+ RESULT= $( curl \
27
27
--connect-timeout 30 \
28
28
--retry 10 \
29
29
--retry-delay 6 \
@@ -33,5 +33,10 @@ curl \
33
33
-H " Content-Type:application/json" \
34
34
$TEST_URL \
35
35
-d ' {"query": "query { foo }"}'
36
-
36
+ )
37
+ foo=$( jq .data.foo <<< " $RESULT" )
38
+ errors=$( jq .errors <<< " $RESULT" )
39
+ if [[ " $errors " != " null" || " $foo " != ' "my-string"' ]]; then
40
+ exit 1
41
+ fi
37
42
)
Original file line number Diff line number Diff line change 2
2
3
3
This package provides an implementation for the ` @aws-appsync/utils ` package that is available on AWS.
4
4
5
+ ## Changelog:
6
+
7
+ - v0.1.0: first pinned version of the library
8
+
5
9
> [ !TIP]
6
10
> To ensure you are using the latest version of this package with LocalStack, start LocalStack with the environment variable
7
11
>
Original file line number Diff line number Diff line change 4
4
"description" : " Implementation of the AppSync utils helpers" ,
5
5
"type" : " module" ,
6
6
"main" : " index.js" ,
7
+ "exports" : {
8
+ "." : " ./index.js" ,
9
+ "./rds" : " ./rds/index.js" ,
10
+ "./dynamodb" : " ./dynamodb/index.js"
11
+ },
7
12
"scripts" : {
8
13
"test:aws" : " NODE_OPTIONS=\" --experimental-vm-modules\" TEST_TARGET=AWS_CLOUD jest -u" ,
9
14
"test" : " NODE_OPTIONS=\" --experimental-vm-modules\" jest --ci" ,
You can’t perform that action at this time.
0 commit comments