@@ -398,13 +398,19 @@ describe('monorepo-workflow-operations', () => {
398
398
it ( 'follows the workflow correctly when executed twice' , async ( ) => {
399
399
await withSandbox ( async ( sandbox ) => {
400
400
const releaseVersion = '1.1.0' ;
401
- const { project, stdout, stderr, createReleaseBranchSpy, commitAllChangesSpy, projectDirectoryPath } =
402
- await setupFollowMonorepoWorkflow ( {
403
- sandbox,
404
- releaseVersion,
405
- doesReleaseSpecFileExist : false ,
406
- isEditorAvailable : true ,
407
- } ) ;
401
+ const {
402
+ project,
403
+ stdout,
404
+ stderr,
405
+ createReleaseBranchSpy,
406
+ commitAllChangesSpy,
407
+ projectDirectoryPath,
408
+ } = await setupFollowMonorepoWorkflow ( {
409
+ sandbox,
410
+ releaseVersion,
411
+ doesReleaseSpecFileExist : false ,
412
+ isEditorAvailable : true ,
413
+ } ) ;
408
414
409
415
createReleaseBranchSpy . mockResolvedValueOnce ( {
410
416
version : releaseVersion ,
@@ -428,11 +434,13 @@ describe('monorepo-workflow-operations', () => {
428
434
} ) ;
429
435
430
436
expect ( commitAllChangesSpy ) . toHaveBeenCalledTimes ( 2 ) ;
431
- expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith ( 1 ,
437
+ expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith (
438
+ 1 ,
432
439
projectDirectoryPath ,
433
440
`Initialize Release ${ releaseVersion } ` ,
434
441
) ;
435
- expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith ( 2 ,
442
+ expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith (
443
+ 2 ,
436
444
projectDirectoryPath ,
437
445
`Update Release ${ releaseVersion } ` ,
438
446
) ;
@@ -461,7 +469,8 @@ describe('monorepo-workflow-operations', () => {
461
469
} ) ;
462
470
463
471
expect ( commitAllChangesSpy ) . toHaveBeenCalledTimes ( 3 ) ;
464
- expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith ( 3 ,
472
+ expect ( commitAllChangesSpy ) . toHaveBeenNthCalledWith (
473
+ 3 ,
465
474
projectDirectoryPath ,
466
475
`Update Release ${ releaseVersion } ` ,
467
476
) ;
0 commit comments