Disable gpg key signing in tests

This avoids a popup appearing if your GPG key has a passphrase and ensures the tests still pass even if GPG is misconfigured.
This commit is contained in:
Simon Engledew 2020-11-03 10:25:42 +00:00
parent 9a0139eee2
commit efc3797e30
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 3 additions and 1 deletions

View file

@ -66,6 +66,7 @@ ava_1.default("checkoutExternalQueries", async (t) => {
await runGit(["init", repoPath]);
await runGit(["config", "user.email", "test@github.com"]);
await runGit(["config", "user.name", "Test Test"]);
await runGit(["config", "commit.gpgsign", "false"]);
fs.writeFileSync(path.join(repoPath, "a"), "a content");
await runGit(["add", "a"]);
await runGit(["commit", "-m", "commit1"]);