(filePath: string)
| 1534 | |
| 1535 | describe('astroResolver.extract — src/pages file-based routing', () => { |
| 1536 | const routeNames = (filePath: string): string[] => |
| 1537 | astroResolver.extract!(filePath, '').nodes.filter((n) => n.kind === 'route').map((n) => n.name); |
| 1538 | |
| 1539 | it('maps index.astro to /', () => { |
| 1540 | expect(routeNames('src/pages/index.astro')).toEqual(['/']); |