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

Function root

__tests__/sync-default-export-change.test.ts:140–142  ·  view source on GitHub ↗
(dflt: string)

Source from the content-addressed store, hash-verified

138
139 it('when a route renders the default as its layout', async () => {
140 const root = (dflt: string): Files => ({
141 'src/root.tsx': `export function AppRoot() { return null; }\nexport function Shell() { return null; }\nexport default ${dflt};\n`,
142 });
143 const before = {
144 'package.json': JSON.stringify({ name: 'app', dependencies: { react: '^18', 'react-router-dom': '^6' } }),
145 'src/router.tsx': "import { createBrowserRouter } from 'react-router-dom';\nimport { default as AppRoot } from './root';\nimport { One } from './one';\n" +

Calls

no outgoing calls

Tested by

no test coverage detected