@wolsok/nx-aws-cdk-v2 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App } from 'aws-cdk-lib';
|
|
1
|
+
import { App, Validations } from 'aws-cdk-lib';
|
|
2
2
|
import { Template } from 'aws-cdk-lib/assertions';
|
|
3
3
|
import { AppStack } from './stacks/app-stack';
|
|
4
4
|
|
|
@@ -7,7 +7,13 @@ describe('<%= className %>', () => {
|
|
|
7
7
|
const app = new App();
|
|
8
8
|
|
|
9
9
|
const stack = new AppStack(app, '<%= projectName %>TestStack');
|
|
10
|
+
Validations.of(stack).acknowledge({
|
|
11
|
+
id: 'CloudFormation-Validate::F0001',
|
|
12
|
+
reason: 'The starter stack has no resources yet.',
|
|
13
|
+
});
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
// aws-cdk-lib leaves the Resources key out of an empty template.
|
|
16
|
+
const resources = Template.fromStack(stack).toJSON().Resources ?? {};
|
|
17
|
+
expect(resources).toEqual({});
|
|
12
18
|
});
|
|
13
19
|
});
|