Skip to content

Commit

Permalink
chore: switch back to using __dirname instead of os.tmpdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jun 17, 2024
1 parent c7deb6a commit 0c83cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/gitlog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import os from "os";
import { execSync } from "child_process";
import gitlog from "../src";

const testRepoLocation = `${os.tmpdir()}/test-repo-clone`;
const testRepoLocation = `${__dirname}/test-repo-clone`;

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

0 comments on commit 0c83cd9

Please sign in to comment.