(prefix: string)
| 8 | const tempDirsToClean: string[] = []; |
| 9 | |
| 10 | async function createTempDir(prefix: string): Promise<string> { |
| 11 | const dirPath = await fs.mkdtemp(path.join(os.tmpdir(), prefix)); |
| 12 | tempDirsToClean.push(dirPath); |
| 13 | return dirPath; |
| 14 | } |
| 15 | |
| 16 | function initGitRepo(repoPath: string): void { |
| 17 | execSync("git init", { cwd: repoPath, stdio: "ignore" }); |
no test coverage detected