()
| 1324 | }); |
| 1325 | |
| 1326 | async function makeWorkspace(): Promise<{ |
| 1327 | readonly homeDir: string; |
| 1328 | readonly repoDir: string; |
| 1329 | readonly workDir: string; |
| 1330 | }> { |
| 1331 | const tmp = await mkdtemp(path.join(tmpdir(), 'kimi-skill-scanner-')); |
| 1332 | tempDirs.push(tmp); |
| 1333 | const homeDir = path.join(tmp, 'home'); |
| 1334 | const repoDir = path.join(tmp, 'repo'); |
| 1335 | const workDir = path.join(repoDir, 'packages', 'app'); |
| 1336 | await mkdir(path.join(repoDir, '.git'), { recursive: true }); |
| 1337 | await mkdir(workDir, { recursive: true }); |
| 1338 | return { homeDir, repoDir, workDir }; |
| 1339 | } |
| 1340 | |
| 1341 | describe('project root discovery (.git walk-up)', () => { |
| 1342 | it('walks up to the nearest .git ancestor for project-scope discovery', async () => { |
no test coverage detected