Skip to content

Commit

Permalink
fix: existing integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Mar 21, 2024
1 parent df3f247 commit 82e62a4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class TestStack extends Stack {
preCompilation: true,
},
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
});

new lambda.NodejsFunction(this, 'ts-decorator-handler-tsconfig', {
Expand All @@ -29,6 +30,7 @@ class TestStack extends Stack {
preCompilation: true,
},
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const handler = new lambda.NodejsFunction(stack, 'Function', {
forceDockerBundling: true,
},
depsLockFilePath: path.join(__dirname, 'integ-handlers/pnpm/pnpm-lock.yaml'),
awsSdkConnectionReuse: true,
});

const integ = new IntegTest(app, 'PnpmTest', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SdkV2TestStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'external', {
entry: path.join(__dirname, 'integ-handlers/dependencies.ts'),
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
bundling: {
minify: true,
// Will be installed, not bundled
Expand All @@ -39,6 +40,7 @@ class SdkV3TestStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'external-sdk-v3', {
entry: path.join(__dirname, 'integ-handlers/dependencies-sdk-v3.ts'),
runtime: Runtime.NODEJS_18_X,
awsSdkConnectionReuse: true,
});
}
}
Expand All @@ -53,6 +55,7 @@ class SdkV3BundledStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'bundle-sdk', {
entry: path.join(__dirname, 'integ-handlers/dependencies-sdk-v3.ts'),
runtime: Runtime.NODEJS_18_X,
awsSdkConnectionReuse: true,
bundling: {
bundleAwsSDK: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TestStack extends Stack {
new lambda.NodejsFunction(this, 'ts-handler', {
entry: path.join(__dirname, 'integ-handlers/ts-handler.ts'),
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
bundling: {
minify: true,
sourceMap: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class TestStack extends Stack {

new lambda.NodejsFunction(this, 'esm', {
entry: path.join(__dirname, 'integ-handlers/esm.ts'),
awsSdkConnectionReuse: true,
bundling: {
format: lambda.OutputFormat.ESM,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class TestStack extends Stack {

this.lambdaFunction = new lambda.NodejsFunction(this, 'latest', {
entry: path.join(__dirname, 'integ-handlers/dependencies.ts'),
awsSdkConnectionReuse: true,
bundling: {
minify: true,
nodeModules: ['delay'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TypeScriptModuleStack extends Stack {

this.lambdaFunction = new lambda.NodejsFunction(this, 'mts-entry', {
entry: path.join(__dirname, 'integ-handlers/mts-handler.mts'),
awsSdkConnectionReuse: true,
});
}
}
Expand All @@ -22,6 +23,7 @@ class TypeScriptCommonJsStack extends Stack {

this.lambdaFunction = new lambda.NodejsFunction(this, 'cts-entry', {
entry: path.join(__dirname, 'integ-handlers/cts-handler.cts'),
awsSdkConnectionReuse: true,
});
}
}
Expand All @@ -32,6 +34,7 @@ class JavaScriptCommonJsStack extends Stack {

this.lambdaFunction = new lambda.NodejsFunction(this, 'cjs-entry', {
entry: path.join(__dirname, 'integ-handlers/cjs-handler.cjs'),
awsSdkConnectionReuse: true,
});
}
}
Expand Down

0 comments on commit 82e62a4

Please sign in to comment.