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

Function formatStepHistory

test/integration/smoke-web-platform.test.ts:342–353  ·  view source on GitHub ↗
(context: WebSmokeContext)

Source from the content-addressed store, hash-verified

340}
341
342function formatStepHistory(context: WebSmokeContext): string {
343 return context.stepHistory
344 .slice(-8)
345 .map((stepRecord) => {
346 const error =
347 stepRecord.errorCode || stepRecord.errorMessage
348 ? ` error=${stepRecord.errorCode ?? ''}${stepRecord.errorMessage ? `:${stepRecord.errorMessage}` : ''}`
349 : '';
350 return `${stepRecord.timestamp} status=${stepRecord.status}${error} ${stepRecord.step} :: ${stepRecord.command}`;
351 })
352 .join('\n');
353}
354
355async function startFixtureServer(): Promise<{ server: Server; url: string }> {
356 const server = createServer((request, response) => {

Callers 1

buildFailureDebugFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected