Skip to content

Commit 4756e27

Browse files
committed
Ensure expected git default branch in tests.
1 parent 8d1f3e3 commit 4756e27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"license": "MIT",
2121
"scripts": {
2222
"lint": "eslint '**/*.js' --fix",
23-
"test": "c8 tap",
24-
"test:cov": "c8 --reporter=html --reporter=text tap",
25-
"test:ci": "c8 --reporter=lcovonly tap"
23+
"test": "GIT_CONFIG_GLOBAL=test/.gitconfig c8 tap",
24+
"test:cov": "GIT_CONFIG_GLOBAL=test/.gitconfig c8 --reporter=html --reporter=text tap",
25+
"test:ci": "GIT_CONFIG_GLOBAL=test/.gitconfig c8 --reporter=lcovonly tap"
2626
},
2727
"engines": {
2828
"node": ">=20"

test/.gitconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[init]
2+
defaultBranch = master

0 commit comments

Comments
 (0)