Applies the owner's Lighthouse targets
Three pages no longer need an exception and the homepage target rises to its measured score, so the gain cannot slip away unnoticed. Also adds the third unit's code summary and updates the shared docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -591,7 +591,7 @@ describe('shoot pages', () => {
|
||||
describe('pagina-register', () => {
|
||||
// Finite sets, so example-based: every shoot page is registered
|
||||
// everywhere, and nothing else lives under /soorten-fotoshoots/
|
||||
it('has every shoot page in the router, registry, sitemap and Lighthouse lists', async () => {
|
||||
it('has every shoot page in the router, registry, sitemap and Lighthouse list', async () => {
|
||||
const { router } = await renderApp('/');
|
||||
const sitemap = sitemapXml(
|
||||
Object.entries(sitePages).map(([path, page]) => ({
|
||||
@@ -612,12 +612,10 @@ describe('pagina-register', () => {
|
||||
);
|
||||
expect(sitemap).toContain(`<loc>${siteUrl}${path}</loc>`);
|
||||
expect(lighthouseConfig.indexedPaths).toContain(path);
|
||||
expect(lighthouseConfig.photoPagePaths).toContain(path);
|
||||
}
|
||||
expect(underPrefix(Object.keys(router.routesByPath))).toEqual(expected);
|
||||
expect(underPrefix(Object.keys(sitePages))).toEqual(expected);
|
||||
expect(underPrefix(lighthouseConfig.indexedPaths)).toEqual(expected);
|
||||
expect(underPrefix(lighthouseConfig.photoPagePaths)).toEqual(expected);
|
||||
const sitemapPaths = [...sitemap.matchAll(/<loc>([^<]*)<\/loc>/g)].map(
|
||||
(match) => match[1].replace(siteUrl, ''),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user