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

Function artifactSource

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

Source from the content-addressed store, hash-verified

52const ARTIFACT_ROW_COUNT = 40;
53
54const artifactSource = (marker: string, linkUrl?: 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 ${
62 linkUrl === undefined
63 ? ""
64 : `<a data-testid="artifact-pr-link" href={${JSON.stringify(linkUrl)}} target="_blank" rel="noreferrer">Open pull request</a>`
65 }
66 </div>
67 <div data-testid="artifact-scroll" className="min-h-0 flex-1 overflow-auto">
68 {Array.from({ length: ${ARTIFACT_ROW_COUNT} }, (_, i) => (
69 <p key={i} data-testid={"artifact-row-" + i} style={{ height: 28 }}>
70 Check {i + 1}: ${marker}
71 </p>
72 ))}
73 </div>
74 </div>
75 );
76}
77`;
78
79/** Selfhost shares one workspace across scenarios, so every title is unique to
80 * 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