MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / idOf

Function idOf

__tests__/ui-trails.test.ts:112–117  ·  view source on GitHub ↗

The id of a fixture symbol, looked up through the API itself.

(name: string)

Source from the content-addressed store, hash-verified

110
111/** The id of a fixture symbol, looked up through the API itself. */
112async function idOf(name: string): Promise<string> {
113 const res = await call(`/api/search?q=${encodeURIComponent(name)}`);
114 const hit = res.body.results.items.find((r: any) => r.name === name);
115 expect(hit, `no symbol named ${name}`).toBeTruthy();
116 return hit.id as string;
117}
118
119function trailsDir(): string {
120 return path.join(projectRoot, TRAILS_RELATIVE_DIR);

Callers 1

ui-trails.test.tsFile · 0.70

Calls 1

callFunction · 0.70

Tested by

no test coverage detected