@@ -61,7 +61,7 @@ describe('IntegTest runIntegTests', () => {
61
61
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
62
62
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
63
63
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( {
64
- app : 'xxxxx.test-with-snapshot.js.snapshot' ,
64
+ app : 'test/test-data/ xxxxx.test-with-snapshot.js.snapshot' ,
65
65
requireApproval : 'never' ,
66
66
pathMetadata : false ,
67
67
assetMetadata : false ,
@@ -76,11 +76,11 @@ describe('IntegTest runIntegTests', () => {
76
76
stacks : [ 'test-stack' ] ,
77
77
} ) ;
78
78
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( {
79
- app : 'node xxxxx.test-with-snapshot.js' ,
79
+ app : 'node test/test-data/ xxxxx.test-with-snapshot.js' ,
80
80
requireApproval : 'never' ,
81
81
pathMetadata : false ,
82
82
assetMetadata : false ,
83
- output : 'cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
83
+ output : 'test/test-data/ cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
84
84
profile : undefined ,
85
85
context : expect . not . objectContaining ( {
86
86
'vpc-provider:account=12345678:filter.isDefault=true:region=test-region:returnAsymmetricSubnets=true' : expect . objectContaining ( {
@@ -92,7 +92,7 @@ describe('IntegTest runIntegTests', () => {
92
92
stacks : [ 'test-stack' , 'new-test-stack' ] ,
93
93
} ) ;
94
94
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( {
95
- app : 'node xxxxx.test-with-snapshot.js' ,
95
+ app : 'node test/test-data/ xxxxx.test-with-snapshot.js' ,
96
96
pathMetadata : false ,
97
97
assetMetadata : false ,
98
98
context : expect . not . objectContaining ( {
@@ -104,7 +104,7 @@ describe('IntegTest runIntegTests', () => {
104
104
profile : undefined ,
105
105
force : true ,
106
106
all : true ,
107
- output : 'cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
107
+ output : 'test/test-data/ cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
108
108
} ) ;
109
109
} ) ;
110
110
@@ -126,7 +126,7 @@ describe('IntegTest runIntegTests', () => {
126
126
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
127
127
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
128
128
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( {
129
- app : 'node xxxxx.integ-test1.js' ,
129
+ app : 'node test/test-data/ xxxxx.integ-test1.js' ,
130
130
requireApproval : 'never' ,
131
131
pathMetadata : false ,
132
132
assetMetadata : false ,
@@ -137,17 +137,17 @@ describe('IntegTest runIntegTests', () => {
137
137
} ) ,
138
138
lookups : false ,
139
139
stacks : [ 'stack1' ] ,
140
- output : 'cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
140
+ output : 'test/test-data/ cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
141
141
} ) ;
142
142
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( {
143
- app : 'node xxxxx.integ-test1.js' ,
143
+ app : 'node test/test-data/ xxxxx.integ-test1.js' ,
144
144
pathMetadata : false ,
145
145
assetMetadata : false ,
146
146
versionReporting : false ,
147
147
context : expect . any ( Object ) ,
148
148
force : true ,
149
149
all : true ,
150
- output : 'cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
150
+ output : 'test/test-data/ cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
151
151
} ) ;
152
152
} ) ;
153
153
@@ -169,7 +169,7 @@ describe('IntegTest runIntegTests', () => {
169
169
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
170
170
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
171
171
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( {
172
- app : 'node xxxxx.test-with-snapshot-assets-diff.js' ,
172
+ app : 'node test/test-data/ xxxxx.test-with-snapshot-assets-diff.js' ,
173
173
requireApproval : 'never' ,
174
174
pathMetadata : false ,
175
175
assetMetadata : false ,
@@ -181,11 +181,11 @@ describe('IntegTest runIntegTests', () => {
181
181
versionReporting : false ,
182
182
lookups : true ,
183
183
stacks : [ 'test-stack' ] ,
184
- output : 'cdk-integ.out.xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
184
+ output : 'test/test-data/ cdk-integ.out.xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
185
185
profile : undefined ,
186
186
} ) ;
187
187
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledWith ( {
188
- execCmd : [ 'node' , 'xxxxx.test-with-snapshot-assets-diff.js' ] ,
188
+ execCmd : [ 'node' , 'test/test-data/ xxxxx.test-with-snapshot-assets-diff.js' ] ,
189
189
env : expect . objectContaining ( {
190
190
CDK_INTEG_ACCOUNT : '12345678' ,
191
191
CDK_INTEG_REGION : 'test-region' ,
@@ -195,10 +195,10 @@ describe('IntegTest runIntegTests', () => {
195
195
vpcId : 'vpc-60900905' ,
196
196
} ) ,
197
197
} ) ,
198
- output : 'xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
198
+ output : 'test/test-data/ xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
199
199
} ) ;
200
200
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( {
201
- app : 'node xxxxx.test-with-snapshot-assets-diff.js' ,
201
+ app : 'node test/test-data/ xxxxx.test-with-snapshot-assets-diff.js' ,
202
202
pathMetadata : false ,
203
203
assetMetadata : false ,
204
204
context : expect . not . objectContaining ( {
@@ -209,7 +209,7 @@ describe('IntegTest runIntegTests', () => {
209
209
versionReporting : false ,
210
210
force : true ,
211
211
all : true ,
212
- output : 'cdk-integ.out.xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
212
+ output : 'test/test-data/ cdk-integ.out.xxxxx.test-with-snapshot-assets-diff.js.snapshot' ,
213
213
} ) ;
214
214
} ) ;
215
215
@@ -231,20 +231,20 @@ describe('IntegTest runIntegTests', () => {
231
231
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
232
232
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
233
233
expect ( cdkMock . mocks . deploy ) . toHaveBeenNthCalledWith ( 1 , expect . objectContaining ( {
234
- app : 'xxxxx.test-with-snapshot.js.snapshot' ,
234
+ app : 'test/test-data/ xxxxx.test-with-snapshot.js.snapshot' ,
235
235
context : expect . any ( Object ) ,
236
236
stacks : [ 'test-stack' ] ,
237
237
} ) ) ;
238
238
expect ( cdkMock . mocks . deploy ) . toHaveBeenNthCalledWith ( 2 , expect . not . objectContaining ( {
239
239
rollback : false ,
240
240
} ) ) ;
241
241
expect ( cdkMock . mocks . deploy ) . toHaveBeenNthCalledWith ( 3 , expect . objectContaining ( {
242
- app : 'node xxxxx.test-with-snapshot.js' ,
242
+ app : 'node test/test-data/ xxxxx.test-with-snapshot.js' ,
243
243
stacks : [ 'Bundling/DefaultTest/DeployAssert' ] ,
244
244
rollback : false ,
245
245
} ) ) ;
246
246
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( {
247
- app : 'node xxxxx.test-with-snapshot.js' ,
247
+ app : 'node test/test-data/ xxxxx.test-with-snapshot.js' ,
248
248
pathMetadata : false ,
249
249
assetMetadata : false ,
250
250
context : expect . not . objectContaining ( {
@@ -255,7 +255,7 @@ describe('IntegTest runIntegTests', () => {
255
255
versionReporting : false ,
256
256
force : true ,
257
257
all : true ,
258
- output : 'cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
258
+ output : 'test/test-data/ cdk-integ.out.xxxxx.test-with-snapshot.js.snapshot' ,
259
259
} ) ;
260
260
} ) ;
261
261
@@ -313,8 +313,8 @@ describe('IntegTest runIntegTests', () => {
313
313
// THEN
314
314
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 1 ) ;
315
315
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledWith ( {
316
- execCmd : [ 'node' , 'xxxxx.integ-test1.js' ] ,
317
- output : 'cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
316
+ execCmd : [ 'node' , 'test/test-data/ xxxxx.integ-test1.js' ] ,
317
+ output : 'test/test-data/ cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
318
318
env : expect . objectContaining ( {
319
319
CDK_INTEG_ACCOUNT : '12345678' ,
320
320
CDK_INTEG_REGION : 'test-region' ,
@@ -342,7 +342,7 @@ describe('IntegTest runIntegTests', () => {
342
342
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
343
343
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
344
344
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( {
345
- app : 'node xxxxx.integ-test1.js' ,
345
+ app : 'node test/test-data/ xxxxx.integ-test1.js' ,
346
346
requireApproval : 'never' ,
347
347
pathMetadata : false ,
348
348
assetMetadata : false ,
@@ -355,10 +355,10 @@ describe('IntegTest runIntegTests', () => {
355
355
profile : 'test-profile' ,
356
356
lookups : false ,
357
357
stacks : [ 'stack1' ] ,
358
- output : 'cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
358
+ output : 'test/test-data/ cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
359
359
} ) ;
360
360
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( {
361
- app : 'node xxxxx.integ-test1.js' ,
361
+ app : 'node test/test-data/ xxxxx.integ-test1.js' ,
362
362
pathMetadata : false ,
363
363
assetMetadata : false ,
364
364
versionReporting : false ,
@@ -370,7 +370,7 @@ describe('IntegTest runIntegTests', () => {
370
370
profile : 'test-profile' ,
371
371
force : true ,
372
372
all : true ,
373
- output : 'cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
373
+ output : 'test/test-data/ cdk-integ.out.xxxxx.integ-test1.js.snapshot' ,
374
374
} ) ;
375
375
} ) ;
376
376
@@ -442,13 +442,13 @@ describe('IntegTest runIntegTests', () => {
442
442
// THEN
443
443
expect ( spawnSyncMock . mock . calls ) . toEqual ( expect . arrayContaining ( [
444
444
expect . arrayContaining ( [
445
- 'git' , [ 'remote' , 'show' , 'origin' ] ,
445
+ 'git' , [ '-C' , expect . any ( String ) , ' remote', 'show' , 'origin' ] ,
446
446
] ) ,
447
447
expect . arrayContaining ( [
448
- 'git' , [ 'merge-base' , 'HEAD' , 'main' ] ,
448
+ 'git' , [ '-C' , expect . any ( String ) , ' merge-base', 'HEAD' , 'main' ] ,
449
449
] ) ,
450
450
expect . arrayContaining ( [
451
- 'git' , [ 'checkout' , 'abc' , '--' , 'xxxxx.test-with-snapshot.js.snapshot' ] ,
451
+ 'git' , [ '-C' , expect . any ( String ) , ' checkout', 'abc' , '--' , 'xxxxx.test-with-snapshot.js.snapshot' ] ,
452
452
] ) ,
453
453
] ) ) ;
454
454
} ) ;
@@ -625,13 +625,13 @@ describe('IntegTest runIntegTests', () => {
625
625
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledTimes ( 1 ) ;
626
626
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledTimes ( 2 ) ;
627
627
expect ( cdkMock . mocks . deploy ) . toHaveBeenCalledWith ( expect . objectContaining ( {
628
- app : 'node --no-warnings xxxxx.test-with-snapshot.js' ,
628
+ app : 'node --no-warnings test/test-data/ xxxxx.test-with-snapshot.js' ,
629
629
} ) ) ;
630
630
expect ( cdkMock . mocks . synthFast ) . toHaveBeenCalledWith ( expect . objectContaining ( {
631
- execCmd : [ 'node' , '--no-warnings' , 'xxxxx.test-with-snapshot.js' ] ,
631
+ execCmd : [ 'node' , '--no-warnings' , 'test/test-data/ xxxxx.test-with-snapshot.js' ] ,
632
632
} ) ) ;
633
633
expect ( cdkMock . mocks . destroy ) . toHaveBeenCalledWith ( expect . objectContaining ( {
634
- app : 'node --no-warnings xxxxx.test-with-snapshot.js' ,
634
+ app : 'node --no-warnings test/test-data/ xxxxx.test-with-snapshot.js' ,
635
635
} ) ) ;
636
636
} ) ;
637
637
} ) ;
@@ -655,7 +655,7 @@ describe('IntegTest watchIntegTest', () => {
655
655
656
656
// THEN
657
657
expect ( cdkMock . mocks . watch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
658
- app : 'node --no-warnings xxxxx.test-with-snapshot.js' ,
658
+ app : 'node --no-warnings test/test-data/ xxxxx.test-with-snapshot.js' ,
659
659
hotswap : HotswapMode . FALL_BACK ,
660
660
watch : true ,
661
661
traceLogs : false ,
@@ -683,7 +683,7 @@ describe('IntegTest watchIntegTest', () => {
683
683
684
684
// THEN
685
685
expect ( cdkMock . mocks . watch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
686
- app : 'node --no-warnings xxxxx.test-with-snapshot.js' ,
686
+ app : 'node --no-warnings test/test-data/ xxxxx.test-with-snapshot.js' ,
687
687
hotswap : HotswapMode . FALL_BACK ,
688
688
watch : true ,
689
689
traceLogs : true ,
0 commit comments