MCPcopy
hub / github.com/colbymchenry/codegraph / routeNames

Function routeNames

__tests__/frameworks.test.ts:1505–1506  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

1503
1504describe('astroResolver.extract — src/pages file-based routing', () => {
1505 const routeNames = (filePath: string): string[] =>
1506 astroResolver.extract!(filePath, '').nodes.filter((n) => n.kind === 'route').map((n) => n.name);
1507
1508 it('maps index.astro to /', () => {
1509 expect(routeNames('src/pages/index.astro')).toEqual(['/']);

Callers 1

frameworks.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected