import * as cdk from '@aws-cdk/core' ; import { SynthUtils } from '@aws-cdk/assert' ; import * as main from '../lib/main-stack' ; test ( 'Test main stack' , ( ) => { const app = new cdk . App ( ) ; const stack = new main . DataTransferS3Stack ( app , 'MyTestStack' ) ; expect ( SynthUtils . toCloudFormation ( stack ) ) . toMatchSnapshot ( ) ; } ) ;