MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / progressBlock

Function progressBlock

src/snapshot-tests/__tests__/normalize.test.ts:4–10  ·  view source on GitHub ↗
(total: number, failed: number)

Source from the content-addressed store, hash-verified

2import { normalizeSnapshotOutput } from '../normalize.ts';
3
4function progressBlock(total: number, failed: number): string {
5 return Array.from({ length: total + 1 }, (_, completed) => {
6 const failures = completed === total ? failed : 0;
7 const label = failures === 1 ? 'failure' : 'failures';
8 return `Running tests (${completed} completed, ${failures} ${label}, 0 skipped)`;
9 }).join('\n');
10}
11
12describe('normalizeSnapshotOutput', () => {
13 it('normalizes volatile device and build-settings values', () => {

Callers 1

normalize.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected