@@ -80,7 +80,7 @@ describe('CliExecutor', () => {
8080 const output = await dvcExecutor . add ( cwd , relPath )
8181 expect ( output ) . toStrictEqual ( stdout )
8282
83- expect ( mockedCreateProcess ) . toBeCalledWith ( {
83+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
8484 args : [ 'add' , relPath ] ,
8585 cwd,
8686 env : mockedEnv ,
@@ -98,7 +98,7 @@ describe('CliExecutor', () => {
9898 const output = await dvcExecutor . checkout ( fsPath )
9999 expect ( output ) . toStrictEqual ( stdout )
100100
101- expect ( mockedCreateProcess ) . toBeCalledWith ( {
101+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
102102 args : [ 'checkout' ] ,
103103 cwd : fsPath ,
104104 env : mockedEnv ,
@@ -114,7 +114,7 @@ describe('CliExecutor', () => {
114114 const output = await dvcExecutor . checkout ( fsPath , Flag . FORCE )
115115 expect ( output ) . toStrictEqual ( stdout )
116116
117- expect ( mockedCreateProcess ) . toBeCalledWith ( {
117+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
118118 args : [ 'checkout' , '-f' ] ,
119119 cwd : fsPath ,
120120 env : mockedEnv ,
@@ -133,7 +133,7 @@ describe('CliExecutor', () => {
133133 const output = await dvcExecutor . checkout ( cwd , relPath )
134134 expect ( output ) . toStrictEqual ( stdout )
135135
136- expect ( mockedCreateProcess ) . toBeCalledWith ( {
136+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
137137 args : [ 'checkout' , relPath ] ,
138138 cwd,
139139 env : mockedEnv ,
@@ -152,7 +152,7 @@ describe('CliExecutor', () => {
152152 const output = await dvcExecutor . checkout ( cwd , relPath , Flag . FORCE )
153153 expect ( output ) . toStrictEqual ( stdout )
154154
155- expect ( mockedCreateProcess ) . toBeCalledWith ( {
155+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
156156 args : [ 'checkout' , relPath , '-f' ] ,
157157 cwd,
158158 env : mockedEnv ,
@@ -170,7 +170,7 @@ describe('CliExecutor', () => {
170170 const output = await dvcExecutor . commit ( cwd )
171171 expect ( output ) . toStrictEqual ( stdout )
172172
173- expect ( mockedCreateProcess ) . toBeCalledWith ( {
173+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
174174 args : [ 'commit' ] ,
175175 cwd,
176176 env : mockedEnv ,
@@ -186,7 +186,7 @@ describe('CliExecutor', () => {
186186 const output = await dvcExecutor . commit ( cwd , Flag . FORCE )
187187 expect ( output ) . toStrictEqual ( stdout )
188188
189- expect ( mockedCreateProcess ) . toBeCalledWith ( {
189+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
190190 args : [ 'commit' , '-f' ] ,
191191 cwd,
192192 env : mockedEnv ,
@@ -208,7 +208,7 @@ describe('CliExecutor', () => {
208208 const output = await dvcExecutor . commit ( cwd , relPath )
209209 expect ( output ) . toStrictEqual ( stdout )
210210
211- expect ( mockedCreateProcess ) . toBeCalledWith ( {
211+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
212212 args : [ 'commit' , relPath ] ,
213213 cwd,
214214 env : mockedEnv ,
@@ -230,7 +230,7 @@ describe('CliExecutor', () => {
230230 const output = await dvcExecutor . commit ( cwd , relPath , Flag . FORCE )
231231 expect ( output ) . toStrictEqual ( stdout )
232232
233- expect ( mockedCreateProcess ) . toBeCalledWith ( {
233+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
234234 args : [ 'commit' , relPath , '-f' ] ,
235235 cwd,
236236 env : mockedEnv ,
@@ -248,7 +248,7 @@ describe('CliExecutor', () => {
248248 const output = await dvcExecutor . experimentApply ( cwd , 'exp-test' )
249249 expect ( output ) . toStrictEqual ( stdout )
250250
251- expect ( mockedCreateProcess ) . toBeCalledWith ( {
251+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
252252 args : [ 'exp' , 'apply' , 'exp-test' ] ,
253253 cwd,
254254 env : mockedEnv ,
@@ -273,7 +273,7 @@ describe('CliExecutor', () => {
273273 )
274274 expect ( output ) . toStrictEqual ( stdout )
275275
276- expect ( mockedCreateProcess ) . toBeCalledWith ( {
276+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
277277 args : [ 'exp' , 'branch' , 'exp-0898f' , 'some-branch' ] ,
278278 cwd,
279279 env : mockedEnv ,
@@ -298,7 +298,7 @@ describe('CliExecutor', () => {
298298 )
299299 expect ( output ) . toStrictEqual ( stdout )
300300
301- expect ( mockedCreateProcess ) . toBeCalledWith ( {
301+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
302302 args : [ 'exp' , 'gc' , '-f' , '--workspace' , '--queued' ] ,
303303 cwd,
304304 env : mockedEnv ,
@@ -316,7 +316,7 @@ describe('CliExecutor', () => {
316316 const output = await dvcExecutor . experimentRemove ( cwd , 'exp-dfd12' )
317317 expect ( output ) . toStrictEqual ( stdout )
318318
319- expect ( mockedCreateProcess ) . toBeCalledWith ( {
319+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
320320 args : [ 'exp' , 'remove' , 'exp-dfd12' ] ,
321321 cwd,
322322 env : mockedEnv ,
@@ -334,7 +334,7 @@ describe('CliExecutor', () => {
334334 const output = await dvcExecutor . experimentRemoveQueue ( cwd )
335335 expect ( output ) . toStrictEqual ( stdout )
336336
337- expect ( mockedCreateProcess ) . toBeCalledWith ( {
337+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
338338 args : [ 'exp' , 'remove' , '--queue' ] ,
339339 cwd,
340340 env : mockedEnv ,
@@ -352,7 +352,7 @@ describe('CliExecutor', () => {
352352 const output = await dvcExecutor . experimentRunQueue ( cwd )
353353 expect ( output ) . toStrictEqual ( stdout )
354354
355- expect ( mockedCreateProcess ) . toBeCalledWith ( {
355+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
356356 args : [ 'exp' , 'run' , '--queue' ] ,
357357 cwd,
358358 env : mockedEnv ,
@@ -387,7 +387,7 @@ describe('CliExecutor', () => {
387387 const output = await dvcExecutor . init ( fsPath )
388388 expect ( output ) . toStrictEqual ( stdout )
389389
390- expect ( mockedCreateProcess ) . toBeCalledWith ( {
390+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
391391 args : [ 'init' , '--subdir' ] ,
392392 cwd : fsPath ,
393393 env : mockedEnv ,
@@ -411,7 +411,7 @@ describe('CliExecutor', () => {
411411 const output = await dvcExecutor . move ( cwd , target , destination )
412412 expect ( output ) . toStrictEqual ( stdout )
413413
414- expect ( mockedCreateProcess ) . toBeCalledWith ( {
414+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
415415 args : [ 'move' , target , destination ] ,
416416 cwd,
417417 env : mockedEnv ,
@@ -430,7 +430,7 @@ describe('CliExecutor', () => {
430430 const output = await dvcExecutor . pull ( cwd )
431431 expect ( output ) . toStrictEqual ( stdout )
432432
433- expect ( mockedCreateProcess ) . toBeCalledWith ( {
433+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
434434 args : [ 'pull' ] ,
435435 cwd,
436436 env : mockedEnv ,
@@ -447,7 +447,7 @@ describe('CliExecutor', () => {
447447 const output = await dvcExecutor . pull ( cwd , Flag . FORCE )
448448 expect ( output ) . toStrictEqual ( stdout )
449449
450- expect ( mockedCreateProcess ) . toBeCalledWith ( {
450+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
451451 args : [ 'pull' , '-f' ] ,
452452 cwd,
453453 env : mockedEnv ,
@@ -465,7 +465,7 @@ describe('CliExecutor', () => {
465465 const output = await dvcExecutor . pull ( cwd , relPath )
466466 expect ( output ) . toStrictEqual ( stdout )
467467
468- expect ( mockedCreateProcess ) . toBeCalledWith ( {
468+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
469469 args : [ 'pull' , relPath ] ,
470470 cwd,
471471 env : mockedEnv ,
@@ -483,7 +483,7 @@ describe('CliExecutor', () => {
483483 const output = await dvcExecutor . pull ( cwd , relPath , Flag . FORCE )
484484 expect ( output ) . toStrictEqual ( stdout )
485485
486- expect ( mockedCreateProcess ) . toBeCalledWith ( {
486+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
487487 args : [ 'pull' , relPath , '-f' ] ,
488488 cwd,
489489 env : mockedEnv ,
@@ -502,7 +502,7 @@ describe('CliExecutor', () => {
502502 const output = await dvcExecutor . push ( cwd )
503503 expect ( output ) . toStrictEqual ( stdout )
504504
505- expect ( mockedCreateProcess ) . toBeCalledWith ( {
505+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
506506 args : [ 'push' ] ,
507507 cwd,
508508 env : mockedEnv ,
@@ -518,7 +518,7 @@ describe('CliExecutor', () => {
518518 const output = await dvcExecutor . push ( cwd , Flag . FORCE )
519519 expect ( output ) . toStrictEqual ( stdout )
520520
521- expect ( mockedCreateProcess ) . toBeCalledWith ( {
521+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
522522 args : [ 'push' , '-f' ] ,
523523 cwd,
524524 env : mockedEnv ,
@@ -536,7 +536,7 @@ describe('CliExecutor', () => {
536536 const output = await dvcExecutor . push ( cwd , relPath )
537537 expect ( output ) . toStrictEqual ( stdout )
538538
539- expect ( mockedCreateProcess ) . toBeCalledWith ( {
539+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
540540 args : [ 'push' , relPath ] ,
541541 cwd,
542542 env : mockedEnv ,
@@ -554,7 +554,7 @@ describe('CliExecutor', () => {
554554 const output = await dvcExecutor . push ( cwd , relPath , Flag . FORCE )
555555 expect ( output ) . toStrictEqual ( stdout )
556556
557- expect ( mockedCreateProcess ) . toBeCalledWith ( {
557+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
558558 args : [ 'push' , relPath , '-f' ] ,
559559 cwd,
560560 env : mockedEnv ,
@@ -575,15 +575,15 @@ describe('CliExecutor', () => {
575575 const output = await dvcExecutor . remove ( cwd , relPath )
576576 expect ( output ) . toStrictEqual ( stdout )
577577
578- expect ( mockedCreateProcess ) . toBeCalledWith ( {
578+ expect ( mockedCreateProcess ) . toHaveBeenCalledWith ( {
579579 args : [ 'remove' , relPath ] ,
580580 cwd,
581581 env : mockedEnv ,
582582 executable : 'dvc'
583583 } )
584584
585- expect ( mockedSetContextValue ) . toBeCalledTimes ( 2 )
586- expect ( mockedSetContextValue ) . toBeCalledWith (
585+ expect ( mockedSetContextValue ) . toHaveBeenCalledTimes ( 2 )
586+ expect ( mockedSetContextValue ) . toHaveBeenCalledWith (
587587 'dvc.scm.command.running' ,
588588 true
589589 )
0 commit comments