Created
March 1, 2022 21:21
-
-
Save cagingulsen/cb58b0f6423e7124e618d4a428e8c0f3 to your computer and use it in GitHub Desktop.
for Production-Ready CDK - CDK Pipelines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as cdk from 'aws-cdk-lib'; | |
| import { Template } from 'aws-cdk-lib/assertions'; | |
| import { LambdaStack } from '../src/lambda-stack'; | |
| test('Lambda created', () => { | |
| const app = new cdk.App(); | |
| const stack = new LambdaStack(app, 'LambdaStack'); | |
| const template = Template.fromStack(stack); | |
| template.resourceCountIs('AWS::Lambda::Function', 1); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment