@@ -32,7 +32,7 @@ test('default deploy', () => {
32
32
33
33
// THEN
34
34
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
35
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
35
+ expect . stringMatching ( / c d k / ) ,
36
36
[ 'deploy' , '--app' , 'node bin/my-app.js' , 'test-stack1' ] ,
37
37
expect . objectContaining ( {
38
38
env : expect . anything ( ) ,
@@ -86,7 +86,7 @@ test('deploy with all arguments', () => {
86
86
87
87
// THEN
88
88
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
89
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
89
+ expect . stringMatching ( / c d k / ) ,
90
90
expect . arrayContaining ( [
91
91
'deploy' ,
92
92
'--no-strict' ,
@@ -146,7 +146,7 @@ test('can parse boolean arguments', () => {
146
146
147
147
// THEN
148
148
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
149
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
149
+ expect . stringMatching ( / c d k / ) ,
150
150
[
151
151
'deploy' ,
152
152
'--app' ,
@@ -179,7 +179,7 @@ test('can parse parameters', () => {
179
179
180
180
// THEN
181
181
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
182
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
182
+ expect . stringMatching ( / c d k / ) ,
183
183
[
184
184
'deploy' ,
185
185
'--parameters' , 'myparam=test' ,
@@ -211,7 +211,7 @@ test('can parse context', () => {
211
211
212
212
// THEN
213
213
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
214
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
214
+ expect . stringMatching ( / c d k / ) ,
215
215
[
216
216
'deploy' ,
217
217
'--app' ,
@@ -243,7 +243,7 @@ test('can parse array arguments', () => {
243
243
244
244
// THEN
245
245
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
246
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
246
+ expect . stringMatching ( / c d k / ) ,
247
247
[
248
248
'deploy' ,
249
249
'--notification-arns' , 'arn:aws:us-east-1:1111111111:some:resource' ,
@@ -274,7 +274,7 @@ test('can provide additional environment', () => {
274
274
275
275
// THEN
276
276
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
277
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
277
+ expect . stringMatching ( / c d k / ) ,
278
278
[ 'deploy' , '--app' , 'node bin/my-app.js' , 'test-stack1' ] ,
279
279
expect . objectContaining ( {
280
280
env : expect . objectContaining ( {
@@ -300,7 +300,7 @@ test('default synth', () => {
300
300
301
301
// THEN
302
302
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
303
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
303
+ expect . stringMatching ( / c d k / ) ,
304
304
[ 'synth' , '--app' , 'node bin/my-app.js' , 'test-stack1' ] ,
305
305
expect . objectContaining ( {
306
306
env : expect . objectContaining ( {
@@ -326,7 +326,7 @@ test('synth arguments', () => {
326
326
327
327
// THEN
328
328
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
329
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
329
+ expect . stringMatching ( / c d k / ) ,
330
330
[ 'destroy' , '--app' , 'node bin/my-app.js' , 'test-stack1' ] ,
331
331
expect . objectContaining ( {
332
332
env : expect . objectContaining ( {
@@ -354,7 +354,7 @@ test('destroy arguments', () => {
354
354
355
355
// THEN
356
356
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
357
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
357
+ expect . stringMatching ( / c d k / ) ,
358
358
[ 'destroy' , '--force' , '--no-exclusively' , '--app' , 'node bin/my-app.js' , 'test-stack1' ] ,
359
359
expect . objectContaining ( {
360
360
env : expect . objectContaining ( {
@@ -380,7 +380,7 @@ test('default ls', () => {
380
380
381
381
// THEN
382
382
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
383
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
383
+ expect . stringMatching ( / c d k / ) ,
384
384
[ 'ls' , '--app' , 'node bin/my-app.js' , '*' ] ,
385
385
expect . objectContaining ( {
386
386
env : expect . objectContaining ( {
@@ -415,7 +415,7 @@ test('ls arguments', () => {
415
415
416
416
// THEN
417
417
expect ( spawnSyncMock ) . toHaveBeenCalledWith (
418
- expect . stringMatching ( / a w s - c d k \/ b i n \/ c d k / ) ,
418
+ expect . stringMatching ( / c d k / ) ,
419
419
[ 'ls' , '--long' , '--app' , 'node bin/my-app.js' , '*' ] ,
420
420
expect . objectContaining ( {
421
421
env : expect . objectContaining ( {
0 commit comments