Clean up a test repo.
(dir: string)
| 39 | |
| 40 | /** Clean up a test repo. */ |
| 41 | function cleanupRepo(dir: string): void { |
| 42 | // Prune worktrees first to avoid git lock issues |
| 43 | spawnSync('git', ['worktree', 'prune'], { cwd: dir, stdio: 'pipe' }); |
| 44 | fs.rmSync(dir, { recursive: true, force: true }); |
| 45 | } |
| 46 | |
| 47 | // Track repos to clean up |
| 48 | const repos: string[] = []; |
no test coverage detected