From 049861c255d748ff54b14ea733d5374750f1eb31 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Tue, 11 Nov 2025 23:00:11 -0800 Subject: [PATCH] Changes to endpoint unit tests for debugging --- test/endpoints.spec.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test/endpoints.spec.ts b/test/endpoints.spec.ts index a8e221e..7aa0795 100644 --- a/test/endpoints.spec.ts +++ b/test/endpoints.spec.ts @@ -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); });