MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / artifactSource

Function artifactSource

e2e/scenarios/artifacts.test.ts:54–72  ·  view source on GitHub ↗
(marker: string)

Source from the content-addressed store, hash-verified

52const ARTIFACT_ROW_COUNT = 40;
53
54const artifactSource = (marker: string) => `
55function App() {
56 return (
57 <div className="flex h-full flex-col gap-4">
58 <div data-testid="artifact-header" className="shrink-0">
59 <h2>Release Readiness</h2>
60 <p data-testid="artifact-marker">${marker}</p>
61 </div>
62 <div data-testid="artifact-scroll" className="min-h-0 flex-1 overflow-auto">
63 {Array.from({ length: ${ARTIFACT_ROW_COUNT} }, (_, i) => (
64 <p key={i} data-testid={"artifact-row-" + i} style={{ height: 28 }}>
65 Check {i + 1}: ${marker}
66 </p>
67 ))}
68 </div>
69 </div>
70 );
71}
72`;
73
74/** Selfhost shares one workspace across scenarios, so every title is unique to
75 * this run and assertions look for "mine", never "the only one". */

Callers 1

artifacts.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected