File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -645,12 +645,22 @@ describe('standard-version', function () {
645
645
mock ( {
646
646
bump : 'minor' ,
647
647
fs : {
648
- '.gitignore' : 'bower.json' ,
649
- 'bower.json' : JSON . stringify ( { version : '1.0.0' } )
648
+ '.gitignore' : 'package-lock.json\nbower.json' ,
649
+ // test a defaults.packageFiles
650
+ 'bower.json' : JSON . stringify ( { version : '1.0.0' } ) ,
651
+ // test a defaults.bumpFiles
652
+ 'package-lock.json' : JSON . stringify ( {
653
+ name : '@org/package' ,
654
+ version : '1.0.0' ,
655
+ lockfileVersion : 1
656
+ } )
650
657
} ,
651
658
tags : [ 'v1.0.0' ]
652
659
} )
653
660
await exec ( )
661
+ JSON . parse ( fs . readFileSync ( 'package-lock.json' , 'utf-8' ) ) . version . should . equal (
662
+ '1.0.0'
663
+ )
654
664
JSON . parse ( fs . readFileSync ( 'bower.json' , 'utf-8' ) ) . version . should . equal (
655
665
'1.0.0'
656
666
)
You can’t perform that action at this time.
0 commit comments