(path: string)
| 34 | } |
| 35 | |
| 36 | async function readTelemetryEntries(path: string): Promise<TelemetryEntry[]> { |
| 37 | const content = await readFile(path, "utf8"); |
| 38 | const entries: TelemetryEntry[] = []; |
| 39 | for (const line of content.split("\n")) { |
| 40 | const trimmed = line.trim(); |
| 41 | if (!trimmed) { |
| 42 | continue; |
| 43 | } |
| 44 | |
| 45 | entries.push(JSON.parse(trimmed)); |
| 46 | } |
| 47 | |
| 48 | return entries; |
| 49 | } |
| 50 | |
| 51 | describe("Telemetry export", async () => { |
| 52 | const marker = "copilot-sdk-telemetry-e2e"; |
no test coverage detected
searching dependent graphs…