Skip to content

Commit

Permalink
chore: Try to add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Hanisch committed Jan 17, 2025
1 parent aabb779 commit bf8b5b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { mult } from '@integ-handlers/util';

export async function handler(): Promise<void> {
console.log(mult(3, 4)); // eslint-disable-line no-console
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
}

Expand Down

0 comments on commit bf8b5b8

Please sign in to comment.