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

Function formatReplayTestProgressStatusLabel

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

Source from the content-addressed store, hash-verified

210}
211
212function formatReplayTestProgressStatusLabel(event: ReplayTestResult): string {
213 if (event.status === 'pass') {
214 return formatCliStatusMarker('pass', {
215 passFormat: event.attempt && event.attempt > 1 ? 'yellow' : 'green',
216 });
217 }
218 return formatCliStatusMarker(event.status === 'fail' ? 'fail' : 'skip');
219}
220
221function colorizeProgressMarker(text: string, format: Parameters<typeof colorize>[1]): string {
222 return colorize(text, format, { validateStream: false });

Callers 1

Calls 1

formatCliStatusMarkerFunction · 0.90

Tested by

no test coverage detected