@@ -109,18 +109,24 @@ test('should work with husky commitmsg hook in sub packages', async () => {
109
109
await execa ( 'git' , [ 'commit' , '-m' , '"test: this should work"' ] , { cwd} ) ;
110
110
} ) ;
111
111
112
- test ( 'should work with husky via commitlint -e $GIT_PARAMS ' , async ( ) => {
112
+ test ( 'should work with husky via commitlint -e $HUSKY_GIT_PARAMS ' , async ( ) => {
113
113
const cwd = await git . bootstrap ( 'fixtures/husky/integration' ) ;
114
- await writePkg ( { scripts : { commitmsg : `'${ bin } ' -e $GIT_PARAMS` } } , { cwd} ) ;
114
+ await writePkg (
115
+ { scripts : { commitmsg : `'${ bin } ' -e $HUSKY_GIT_PARAMS` } } ,
116
+ { cwd}
117
+ ) ;
115
118
116
119
await execa ( 'npm' , [ 'install' ] , { cwd} ) ;
117
120
await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
118
121
await execa ( 'git' , [ 'commit' , '-m' , '"test: this should work"' ] , { cwd} ) ;
119
122
} ) ;
120
123
121
- test ( 'should work with husky via commitlint -e %GIT_PARAMS %' , async ( ) => {
124
+ test ( 'should work with husky via commitlint -e %HUSKY_GIT_PARAMS %' , async ( ) => {
122
125
const cwd = await git . bootstrap ( 'fixtures/husky/integration' ) ;
123
- await writePkg ( { scripts : { commitmsg : `'${ bin } ' -e %GIT_PARAMS%` } } , { cwd} ) ;
126
+ await writePkg (
127
+ { scripts : { commitmsg : `'${ bin } ' -e %HUSKY_GIT_PARAMS%` } } ,
128
+ { cwd}
129
+ ) ;
124
130
125
131
await execa ( 'npm' , [ 'install' ] , { cwd} ) ;
126
132
await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
0 commit comments