(items: unknown[])
| 318 | } |
| 319 | |
| 320 | function normalizeTestCases(items: unknown[]): unknown[] { |
| 321 | const sorted = [...items].sort((a, b) => testCaseSortKey(a).localeCompare(testCaseSortKey(b))); |
| 322 | const failed = sorted.filter((item) => isNormalizedTestCase(item) && item.status === 'failed'); |
| 323 | |
| 324 | return failed.length > 0 ? failed : sorted; |
| 325 | } |
| 326 | |
| 327 | function isDiagnosticTestFailure( |
| 328 | value: unknown, |
no test coverage detected