diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-paths-handler.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-paths-handler.ts new file mode 100644 index 0000000000000..17f8010631a91 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-paths-handler.ts @@ -0,0 +1,5 @@ +import { mult } from '@integ-handlers/util'; + +export async function handler(): Promise { + console.log(mult(3, 4)); // eslint-disable-line no-console +} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts index 591fd33d2e8fe..4705e1b1d5384 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.ts @@ -30,6 +30,18 @@ class TestStack extends Stack { }, runtime: STANDARD_NODEJS_RUNTIME, }); + + new lambda.NodejsFunction(this, 'ts-paths-handler-tsconfig', { + entry: path.join(__dirname, 'integ-handlers/ts-paths-handler.ts'), + bundling: { + minify: true, + sourceMap: true, + sourceMapMode: lambda.SourceMapMode.BOTH, + tsconfig: path.join(__dirname, '..', 'tsconfig-custom.json'), + preCompilation: true, + }, + runtime: STANDARD_NODEJS_RUNTIME, + }); } }