* Normalize output for comparison * - Strip comment lines (starting with #) - these are metadata in spec test STDOUT sections * - Trim trailing whitespace from each line * - Ensure consistent line endings * - Trim trailing newline
(output: string)
| 293 | * - Trim trailing newline |
| 294 | */ |
| 295 | function normalizeOutput(output: string): string { |
| 296 | return output |
| 297 | .split("\n") |
| 298 | .filter((line) => !line.startsWith("#")) // Strip comment lines |
| 299 | .map((line) => line.trimEnd()) |
| 300 | .join("\n") |
| 301 | .replace(/\n+$/, ""); |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Get summary statistics for test results |
no test coverage detected
searching dependent graphs…