@@ -500,6 +500,8 @@ describe('lint-staged', () => {
500
500
} )
501
501
502
502
it ( 'should handle merge conflicts' , async ( ) => {
503
+ await execGit ( [ 'config' , 'merge.conflictstyle' , 'merge' ] )
504
+
503
505
const fileInBranchA = `module.exports = "foo";\n`
504
506
const fileInBranchB = `module.exports = 'bar'\n`
505
507
const fileInBranchBFixed = `module.exports = "bar";\n`
@@ -561,6 +563,8 @@ describe('lint-staged', () => {
561
563
} )
562
564
563
565
it ( 'should handle merge conflict when task errors' , async ( ) => {
566
+ await execGit ( [ 'config' , 'merge.conflictstyle' , 'merge' ] )
567
+
564
568
const fileInBranchA = `module.exports = "foo";\n`
565
569
const fileInBranchB = `module.exports = 'bar'\n`
566
570
const fileInBranchBFixed = `module.exports = "bar";\n`
@@ -1000,6 +1004,8 @@ describe('lint-staged', () => {
1000
1004
} )
1001
1005
1002
1006
it ( 'should abort commit without reverting with --no-stash 1' , async ( ) => {
1007
+ await execGit ( [ 'config' , 'merge.conflictstyle' , 'merge' ] )
1008
+
1003
1009
// Stage file
1004
1010
await appendFile ( 'test.js' , testJsFileUgly )
1005
1011
await execGit ( [ 'add' , 'test.js' ] )
0 commit comments