MCPcopy Index your code
hub / github.com/callstack/agent-device / formatReplayTestCaseSummaryLine

Function formatReplayTestCaseSummaryLine

src/replay/test/progress.ts:196–204  ·  view source on GitHub ↗
(event: ReplayTestResult)

Source from the content-addressed store, hash-verified

194}
195
196function formatReplayTestCaseSummaryLine(event: ReplayTestResult): string {
197 const useColor = supportsColor(process.stderr);
198 const statusLabel = formatReplayTestProgressStatusLabel(event);
199 const name = formatReplayTestProgressName(event);
200 const shardSuffix = formatReplayTestProgressShardSuffix(event, { useColor });
201 const durationSuffix =
202 event.durationMs !== undefined ? ` ${formatReplayProgressDuration(event, { useColor })}` : '';
203 return `${statusLabel} ${name}${shardSuffix}${durationSuffix}`;
204}
205
206function formatReplayTestProgressName(event: ReplayTestResult | ReplayTestStep): string {
207 const title = event.title?.trim();

Callers 1

Tested by

no test coverage detected