(filePath: string)
| 1503 | |
| 1504 | describe('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(['/']); |