MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / normalizeTestCases

Function normalizeTestCases

src/snapshot-tests/json-normalize.ts:320–325  ·  view source on GitHub ↗
(items: unknown[])

Source from the content-addressed store, hash-verified

318}
319
320function 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
327function isDiagnosticTestFailure(
328 value: unknown,

Callers 1

normalizeValueFunction · 0.85

Calls 2

testCaseSortKeyFunction · 0.85
isNormalizedTestCaseFunction · 0.85

Tested by

no test coverage detected