Skip to content

Commit 436f26d

Browse files
deps: skuba 11.1.0 (#146)
* deps: skuba 11.1.0 * Update snapshots --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ryan Ling <[email protected]>
1 parent e0c302a commit 436f26d

File tree

4 files changed

+549
-845
lines changed

4 files changed

+549
-845
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^22.13.14",
2121
"dotenv": "16.5.0",
2222
"esbuild": "~0.25.0",
23-
"skuba": "11.0.1"
23+
"skuba": "11.1.0"
2424
},
2525
"packageManager": "[email protected]",
2626
"engines": {

packages/hooks/src/index.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import * as rootModule from '.';
33
describe('rootModule', () => {
44
it('exports runtime helpers', () =>
55
expect(rootModule).toMatchInlineSnapshot(`
6-
{
7-
"containsSkipDirective": [Function],
8-
"isHttpHook": [Function],
9-
"isLambdaHook": [Function],
10-
"smokeTest": {
11-
"koaMiddleware": [Function],
12-
},
13-
}
14-
`));
6+
{
7+
"containsSkipDirective": [Function],
8+
"isHttpHook": [Function],
9+
"isLambdaHook": [Function],
10+
"smokeTest": {
11+
"koaMiddleware": [Function],
12+
},
13+
}
14+
`));
1515
});

packages/infra/src/handlers/process/lambda/smokeTest.test.ts

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ describe('smokeTest', () => {
3030
const [invocation] = lambda.commandCalls(InvokeCommand);
3131

3232
expect(invocation!.firstArg.input).toMatchInlineSnapshot(`
33-
{
34-
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwifX0=",
35-
"FunctionName": "mock-name",
36-
"InvocationType": "RequestResponse",
37-
"Payload": "{}",
38-
"Qualifier": "mock-version",
39-
}
40-
`);
33+
{
34+
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwifX0=",
35+
"FunctionName": "mock-name",
36+
"InvocationType": "RequestResponse",
37+
"Payload": "{}",
38+
"Qualifier": "mock-version",
39+
}
40+
`);
4141

4242
const clientContext = JSON.parse(
4343
Buffer.from(invocation!.firstArg.input.ClientContext, 'base64').toString(
@@ -46,12 +46,12 @@ describe('smokeTest', () => {
4646
);
4747

4848
expect(clientContext).toMatchInlineSnapshot(`
49-
{
50-
"Custom": {
51-
"user-agent": "aws-codedeploy-hook-LifecycleEvent/local",
52-
},
53-
}
54-
`);
49+
{
50+
"Custom": {
51+
"user-agent": "aws-codedeploy-hook-LifecycleEvent/local",
52+
},
53+
}
54+
`);
5555
});
5656

5757
it('embeds a request ID where available', async () => {
@@ -70,13 +70,13 @@ describe('smokeTest', () => {
7070
);
7171

7272
expect(clientContext).toMatchInlineSnapshot(`
73-
{
74-
"Custom": {
75-
"user-agent": "aws-codedeploy-hook-LifecycleEvent/local",
76-
"x-request-id": "mock-request-id",
77-
},
78-
}
79-
`);
73+
{
74+
"Custom": {
75+
"user-agent": "aws-codedeploy-hook-LifecycleEvent/local",
76+
"x-request-id": "mock-request-id",
77+
},
78+
}
79+
`);
8080
});
8181

8282
it('supports multiple functions', async () => {
@@ -97,23 +97,23 @@ describe('smokeTest', () => {
9797

9898
expect(invocations.map((invocation) => invocation.firstArg.input))
9999
.toMatchInlineSnapshot(`
100-
[
101-
{
102-
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwiLCJ4LXJlcXVlc3QtaWQiOiJtb2NrLXJlcXVlc3QtaWQifX0=",
103-
"FunctionName": "mock-name-1",
104-
"InvocationType": "RequestResponse",
105-
"Payload": "{}",
106-
"Qualifier": "mock-version-1",
107-
},
108-
{
109-
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwiLCJ4LXJlcXVlc3QtaWQiOiJtb2NrLXJlcXVlc3QtaWQifX0=",
110-
"FunctionName": "mock-name-2",
111-
"InvocationType": "RequestResponse",
112-
"Payload": "{}",
113-
"Qualifier": "mock-version-2",
114-
},
115-
]
116-
`);
100+
[
101+
{
102+
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwiLCJ4LXJlcXVlc3QtaWQiOiJtb2NrLXJlcXVlc3QtaWQifX0=",
103+
"FunctionName": "mock-name-1",
104+
"InvocationType": "RequestResponse",
105+
"Payload": "{}",
106+
"Qualifier": "mock-version-1",
107+
},
108+
{
109+
"ClientContext": "eyJDdXN0b20iOnsidXNlci1hZ2VudCI6ImF3cy1jb2RlZGVwbG95LWhvb2stTGlmZWN5Y2xlRXZlbnQvbG9jYWwiLCJ4LXJlcXVlc3QtaWQiOiJtb2NrLXJlcXVlc3QtaWQifX0=",
110+
"FunctionName": "mock-name-2",
111+
"InvocationType": "RequestResponse",
112+
"Payload": "{}",
113+
"Qualifier": "mock-version-2",
114+
},
115+
]
116+
`);
117117
});
118118

119119
it('propagates an error from the AWS API', async () => {

0 commit comments

Comments
 (0)