import * as cdk from '@aws-cdk/core' ; import { SynthUtils } from '@aws-cdk/assert' ; import * as cm from '../lib/common-resources' ; test ( 'Test Common stack' , ( ) => { const stack = new cdk . Stack ( ) ; new cm . CommonStack ( stack , 'MyTestCommonStack' , { alarmEmail : 'admin@example.com' , } ) ; expect ( SynthUtils . toCloudFormation ( stack ) ) . toMatchSnapshot ( ) ; } ) ;