diff --git a/test/gitlog.test.ts b/test/gitlog.test.ts index a1ef260..52101b6 100644 --- a/test/gitlog.test.ts +++ b/test/gitlog.test.ts @@ -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); }