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

Function table

__tests__/react-router.test.ts:1353–1363  ·  view source on GitHub ↗
(extra: string)

Source from the content-addressed store, hash-verified

1351`;
1352 const MAPPED = app('{AppRoutes.map(({ element, ...rest }, index) => <Route key={index} {...rest} element={element} />)}');
1353 const table = (extra: string) => `import { Counter } from './Counter';
1354import { Home } from './Home';
1355import { FetchData } from './FetchData';
1356
1357const AppRoutes = [${extra}
1358 { index: true, element: <Home /> },
1359 { path: '/counter', element: <Counter /> },
1360];
1361
1362export default AppRoutes;
1363`;
1364 beforeAll(async () => {
1365 ({ root, cg } = await indexProject({
1366 'package.json': JSON.stringify({ name: 'app', dependencies: { react: '^18', 'react-router-dom': '^6' } }),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected