Changes to endpoint unit tests for debugging
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 3m36s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped

This commit is contained in:
2025-11-11 23:00:11 -08:00
parent ba948e4181
commit 049861c255

View File

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