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

Function formatReplayTestProgressShardSuffix

src/replay/test/progress.ts:225–234  ·  view source on GitHub ↗
(
  event: ReplayTestResult | ReplayTestStep,
  options: { useColor?: boolean } = {},
)

Source from the content-addressed store, hash-verified

223}
224
225function formatReplayTestProgressShardSuffix(
226 event: ReplayTestResult | ReplayTestStep,
227 options: { useColor?: boolean } = {},
228): string {
229 if (typeof event.shardIndex !== 'number') return '';
230 const shardCount = typeof event.shardCount === 'number' ? event.shardCount : '?';
231 const device = replayTestProgressShardDeviceName(event);
232 const suffix = ` [${event.shardIndex + 1}/${shardCount}${device ? ` ${device}` : ''}]`;
233 return options.useColor ? colorizeProgressMarker(suffix, 'dim') : suffix;
234}
235
236function replayTestProgressShardDeviceName(
237 event: ReplayTestResult | ReplayTestStep,

Calls 2

colorizeProgressMarkerFunction · 0.85

Tested by

no test coverage detected