More website content updates #10

Merged
caperren merged 20 commits from website-content-updates into main 2025-12-05 10:00:14 +00:00
Showing only changes of commit cef1b3381f - Show all commits

View File

@@ -17,21 +17,23 @@ const astroStaticPaths = new Set(
// Paths that exist in the site layout // Paths that exist in the site layout
const siteLayoutPaths = new Set([...getPaths(siteLayout), ...getPaths(siteLayout, [], true)]); const siteLayoutPaths = new Set([...getPaths(siteLayout), ...getPaths(siteLayout, [], true)]);
test('Astro Paths Not Empty', async () => { test('Astro Paths Not Empty', () => {
expect(astroStaticPaths).not.toHaveLength(0); expect(astroStaticPaths).not.toHaveLength(0);
console.log(astroStaticPaths);
}); });
test('Site Layout Paths Not Empty', async () => { test('Site Layout Paths Not Empty', () => {
expect(siteLayoutPaths).not.toHaveLength(0); expect(siteLayoutPaths).not.toHaveLength(0);
console.log(siteLayoutPaths);
}); });
test('Pages Missing from Site Layout', async () => { test('Pages Missing from Site Layout', () => {
const astroNotLayoutPaths = astroStaticPaths.difference(siteLayoutPaths); const astroNotLayoutPaths = astroStaticPaths.difference(siteLayoutPaths);
expect(astroNotLayoutPaths).toHaveLength(0); expect(astroNotLayoutPaths).toHaveLength(0);
}); });
test('Pages Missing from Astro Paths', async () => { test('Pages Missing from Astro Paths', () => {
const siteLayoutNotAstroPaths = siteLayoutPaths.difference(astroStaticPaths); const siteLayoutNotAstroPaths = siteLayoutPaths.difference(astroStaticPaths);
expect(siteLayoutNotAstroPaths).toHaveLength(0); expect(siteLayoutNotAstroPaths).toHaveLength(0);
}); });