(projectPath: string)
| 324 | } |
| 325 | |
| 326 | async function readGitTopLevel(projectPath: string): Promise<string | null> { |
| 327 | try { |
| 328 | using proc = execFileAsync("git", ["-C", projectPath, "rev-parse", "--show-toplevel"]); |
| 329 | const { stdout } = await proc.result; |
| 330 | return stripTrailingSlashes(stdout.trim()); |
| 331 | } catch { |
| 332 | return null; |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | function findDeepestTopLevelParentProject( |
| 337 | candidatePath: string, |
no test coverage detected