(repoPath: string)
| 10 | } |
| 11 | |
| 12 | function initRepo(repoPath: string) { |
| 13 | fs.mkdirSync(repoPath, { recursive: true }); |
| 14 | git(repoPath, ['init']); |
| 15 | git(repoPath, ['checkout', '-B', 'main']); |
| 16 | git(repoPath, ['config', 'user.email', 'test@example.com']); |
| 17 | git(repoPath, ['config', 'user.name', 'Test User']); |
| 18 | fs.writeFileSync(path.join(repoPath, 'README.md'), '# test\n'); |
| 19 | git(repoPath, ['add', 'README.md']); |
| 20 | git(repoPath, ['commit', '-m', 'initial commit']); |
| 21 | } |
| 22 | |
| 23 | describe('WorktreeManager.remove', () => { |
| 24 | let tempDir: string; |
no test coverage detected