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

Function withRoot

__tests__/tanstack-router.test.ts:152–155  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

150 // TanStack's kitchen-sink example, whose root takes its context's type.
151 const ROOT = 'const rootRoute = createRootRoute({ component: RootComponent })\n';
152 const withRoot = (root: string): string => {
153 expect(src).toContain(ROOT);
154 return src.replace(ROOT, root);
155 };
156 const expected = parseTanstackRoutes(src).map((r) => [r.path, r.component, r.index]);
157
158 it.each([

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected