Skip to content

Commit 99a8a9f

Browse files
committed
Adding some documentation
1 parent c039fb4 commit 99a8a9f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/@aws-cdk/aws-amplify-alpha/test/integ.app-asset-deployment.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2421
const app = new App();
2522
const 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.
2627
new IntegTest(app, 'cdk-amplify-app-integ-test', {
2728
testCases: [stack],
2829
});

0 commit comments

Comments
 (0)