Skip to content

Commit 79b09f7

Browse files
committed
force build of cdk examples and add this as test
1 parent 93d2333 commit 79b09f7

File tree

5 files changed

+2747
-9
lines changed

5 files changed

+2747
-9
lines changed

examples/cdk/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
testEnvironment: 'node',
33
roots: ['<rootDir>/tests'],
4-
testMatch: ['**/*.tests.ts'],
4+
testMatch: ['**/*.test.ts'],
55
transform: {
66
'^.+\\.tsx?$': 'ts-jest'
77
}

examples/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "tsc --skipLibCheck",
99
"watch": "tsc -w",
10-
"test": "jest --passWithNoTests",
10+
"test": "npm run build && jest",
1111
"cdk": "cdk"
1212
},
1313
"devDependencies": {

examples/cdk/src/example-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ExampleFunction extends Construct {
3131
onUpdate: {
3232
service: 'Lambda',
3333
action: 'invoke',
34-
physicalResourceId: custom_resources.PhysicalResourceId.of(new Date().toISOString()),
34+
physicalResourceId: custom_resources.PhysicalResourceId.of(`${functionName}-${i}`),
3535
parameters: {
3636
FunctionName: fn.functionName,
3737
InvocationType: 'RequestResponse',

0 commit comments

Comments
 (0)