(
client: CopilotClient,
home: string,
fixtureDir?: string
)
| 54 | } |
| 55 | |
| 56 | async function disposeIsolated( |
| 57 | client: CopilotClient, |
| 58 | home: string, |
| 59 | fixtureDir?: string |
| 60 | ): Promise<void> { |
| 61 | try { |
| 62 | await client.forceStop(); |
| 63 | } catch { |
| 64 | // Best-effort cleanup. |
| 65 | } |
| 66 | tryRemoveDirectory(home); |
| 67 | if (fixtureDir) { |
| 68 | tryRemoveDirectory(fixtureDir); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | function tryRemoveDirectory(directory: string): void { |
| 73 | try { |
no test coverage detected
searching dependent graphs…