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:
2026-11-01 20:07:24 +01:00
co-authored by Claude Opus 5.5
parent 498be43020
commit b6d5a85e41
12 changed files with 181 additions and 44 deletions
+1 -3
View File
@@ -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, ''),
);