(route: { name: string; params?: Record<string, string> })
| 59 | |
| 60 | describe('SEO metadata sync', () => { |
| 61 | function headFor(route: { name: string; params?: Record<string, string> }) { |
| 62 | return buildRouteHead( |
| 63 | resolveRouteMetadata({ |
| 64 | params: {}, |
| 65 | meta: route.name === 'sample-detail' ? { state: { sampleDetail: sample } } : {}, |
| 66 | ...route |
| 67 | } as never) |
| 68 | ); |
| 69 | } |
| 70 | |
| 71 | function findMeta( |
| 72 | head: ReturnType<typeof buildRouteHead>, |
no test coverage detected