File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,25 @@ describe("bump --commit", () => {
6868 git [ 0 ] . cmd . should . equal ( 'git commit -a -m "release v1.1.0"' ) ;
6969 } ) ;
7070
71+ it ( "should commit without running pre-commit hooks" , ( ) => {
72+ files . create ( "package.json" , { version : "1.0.0" } ) ;
73+
74+ let bump = chaiExec ( "--minor --commit --all --no-verify" ) ;
75+
76+ bump . stderr . should . be . empty ;
77+ bump . should . have . exitCode ( 0 ) ;
78+
79+ bump . should . have . stdout (
80+ `${ check } Updated package.json to 1.1.0\n` +
81+ `${ check } Git commit\n`
82+ ) ;
83+
84+ let git = mocks . git ( ) ;
85+ git . length . should . equal ( 1 ) ;
86+
87+ git [ 0 ] . cmd . should . equal ( 'git commit --no-verify -a -m "release v1.1.0"' ) ;
88+ } ) ;
89+
7190 it ( "should commit the manifest files to git with a message" , ( ) => {
7291 files . create ( "package.json" , { version : "1.0.0" } ) ;
7392
You can’t perform that action at this time.
0 commit comments