File tree Expand file tree Collapse file tree
packages/@aws-cdk/aws-amplify-alpha/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ class TestStack extends Stack {
99 constructor ( scope : Construct , id : string , props ?: StackProps ) {
1010 super ( scope , id , props ) ;
1111
12- // Deploying this integ test would create an Amplify app with branch name 'main'
13- // Re-deploying the stack again after updating the asset file would update the Amplify app.
14- //
1512 const asset = new Asset ( this , 'SampleAsset' , {
1613 path : path . join ( __dirname , './test-asset' ) ,
1714 } ) ;
@@ -23,6 +20,10 @@ class TestStack extends Stack {
2320
2421const app = new App ( ) ;
2522const stack = new TestStack ( app , 'cdk-amplify-app-asset-deployment' ) ;
23+
24+ // Deploying the stack is sufficient to test the custom resources
25+ // On successful deployment we can check the Amplify app with the branch named as 'main' consisting of the asset file changes
26+ // On updating the asset file and re-deploying it updates the existing Amplify app with the new change.
2627new IntegTest ( app , 'cdk-amplify-app-integ-test' , {
2728 testCases : [ stack ] ,
2829} ) ;
You can’t perform that action at this time.
0 commit comments