diff --git a/apps/website/src/utils/github.test.ts b/apps/website/src/utils/github.test.ts index 3f33b9f8a0..088880497d 100644 --- a/apps/website/src/utils/github.test.ts +++ b/apps/website/src/utils/github.test.ts @@ -56,9 +56,12 @@ describe('fetchGitHubStars', () => { it('falls back to the last known star count for build-time fetch failures', async () => { const fetchImpl = vi.fn(async () => new Response(null, { status: 403 })) - await expect( - fetchGitHubStarsForBuild(fetchImpl as unknown as typeof fetch) - ).resolves.toBe(111605) + const fallback = await fetchGitHubStarsForBuild( + fetchImpl as unknown as typeof fetch + ) + + expect(Number.isSafeInteger(fallback)).toBe(true) + expect(fallback).toBeGreaterThan(0) }) })