Skip to content

Commit

Permalink
chore: add some debug to execSync calls in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jun 17, 2024
1 parent 70fa321 commit c7deb6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/gitlog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import gitlog from "../src";
const testRepoLocation = `${os.tmpdir()}/test-repo-clone`;

function execInTmpDir(command: string) {
execSync(command, { cwd: os.tmpdir(), stdio: "ignore" });
try {
execSync(command, { cwd: os.tmpdir(), stdio: "ignore" });
} catch (e) {
console.error("Error with execSync", e);
}
}

describe("gitlog", () => {
Expand Down

0 comments on commit c7deb6a

Please sign in to comment.