Skip to content

Commit

Permalink
Disable gpg key signing in tests
Browse files Browse the repository at this point in the history
This avoids a popup appearing if your GPG key has a passphrase and ensures the tests still pass even if GPG is misconfigured.
  • Loading branch information
Simon Engledew committed Nov 3, 2020
1 parent 9a0139e commit efc3797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/external-queries.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/external-queries.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/external-queries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test("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"]);
Expand Down

0 comments on commit efc3797

Please sign in to comment.