From cef1b3381ffc68a31e55b4b229622b81bd00eccb Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Tue, 11 Nov 2025 23:12:45 -0800 Subject: [PATCH] Make endpoint tests not async and more logging --- test/endpoints.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/endpoints.spec.ts b/test/endpoints.spec.ts index 7aa0795..5d5909d 100644 --- a/test/endpoints.spec.ts +++ b/test/endpoints.spec.ts @@ -17,21 +17,23 @@ const astroStaticPaths = new Set( // Paths that exist in the site layout 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); + console.log(astroStaticPaths); }); -test('Site Layout Paths Not Empty', async () => { +test('Site Layout Paths Not Empty', () => { 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); expect(astroNotLayoutPaths).toHaveLength(0); }); -test('Pages Missing from Astro Paths', async () => { +test('Pages Missing from Astro Paths', () => { const siteLayoutNotAstroPaths = siteLayoutPaths.difference(astroStaticPaths); expect(siteLayoutNotAstroPaths).toHaveLength(0); });