(filePath: string)
| 2063 | |
| 2064 | describe('astroResolver.extract — src/pages file-based routing', () => { |
| 2065 | const routeNames = (filePath: string): string[] => |
| 2066 | astroResolver.extract!(filePath, '').nodes.filter((n) => n.kind === 'route').map((n) => n.name); |
| 2067 | |
| 2068 | it('maps index.astro to /', () => { |
| 2069 | expect(routeNames('src/pages/index.astro')).toEqual(['/']); |