* Collapse matrix variants of a job name so the same test failing across the matrix dedupes to a * single issue instead of one per node/TS version. We strip only version-like parenthetical groups * — a bare number (e.g. node version) or a `TS x.y` bracket — leaving other parentheticals (e.g. * `(
(name)
| 28 | * "Node (24) (TS 3.8) Integration Tests" -> "Node Integration Tests" |
| 29 | */ |
| 30 | function normalizeJobName(name) { |
| 31 | return name |
| 32 | .replace(/\(\s*(?:\d+|TS\s+[\d.]+)\s*\)/gi, ' ') |
| 33 | .replace(/\s+/g, ' ') |
| 34 | .trim(); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Collapse esm/cjs variants of a test name so the same test failing in both module formats dedupes |