chore(core): disable commit gpgsign

When running tests locally, if global Git config is set to sign commit with gpg then, tests are failing with `gpg failed to sign the data`, this fixes this issue.
This commit is contained in:
Edouard Bozon 2021-10-05 21:30:32 +02:00 committed by Victor Savkin
parent 65f6c0d562
commit 19964a62ae
2 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,7 @@ describe('affected (with git)', () => {
runCommand(`git init`);
runCommand(`git config user.email "test@test.com"`);
runCommand(`git config user.name "Test"`);
runCommand(`git config commit.gpgsign false`);
runCommand(
`git add . && git commit -am "initial commit" && git checkout -b main`
);

View File

@ -12,6 +12,7 @@ describe('git-hasher', () => {
run(`git init`);
run(`git config user.email "test@test.com"`);
run(`git config user.name "test"`);
run(`git config commit.gpgsign false`);
warnSpy.mockClear();
});