MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / sidecarExtension

Function sidecarExtension

src/lib/bundle.ts:678–686  ·  view source on GitHub ↗
(kind: 'log' | 'network' | 'console' | 'screenshot' | 'snapshot')

Source from the content-addressed store, hash-verified

676}
677
678function sidecarExtension(kind: 'log' | 'network' | 'console' | 'screenshot' | 'snapshot'): string {
679 if (kind === 'network' || kind === 'console') return 'json';
680 if (kind === 'screenshot') return 'png';
681 if (kind === 'snapshot') return 'html';
682 // log evidence is text-shaped — `.txt` is the safest default. The
683 // actual content-type the URL serves may be log-specific (e.g.
684 // .ndjson for stream-of-events logs); we don't try to guess.
685 return 'txt';
686}
687
688/**
689 * Stream a presigned URL into a file with bounded retry on transport

Callers 1

writeStepArtifactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected