From e824489b3d60d4c8fcb6faa980c9191e6f039cc2 Mon Sep 17 00:00:00 2001 From: Bretton Date: Mon, 31 Aug 2026 17:35:24 -0700 Subject: [PATCH] test(ci): give ESLint-driven tests a CI-tolerant timeout The layering and no-console tests run ESLint programmatically; the first case in each file pays ESLint's cold-start cost, which exceeds vitest's 5s default on slow CI runners (both recent main pushes failed on it). Allow 30s per case. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QmYufKZKpjPQ9VssZiqWZG --- src/lib/app/util/log/no-console.test.ts | 4 ++-- src/lib/ui/kit/layering.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/app/util/log/no-console.test.ts b/src/lib/app/util/log/no-console.test.ts index 0950c3fe..995d37f6 100644 --- a/src/lib/app/util/log/no-console.test.ts +++ b/src/lib/app/util/log/no-console.test.ts @@ -86,7 +86,7 @@ describe('no-console fence', () => { [HOOKS], ])('reports console.error in %s', async (from) => { expect(await reportsConsole(from)).toBe(true) - }) + }, 30_000) it.each([ // The logger itself is the one place allowed to reach a console. @@ -96,5 +96,5 @@ describe('no-console fence', () => { [APP_TEST], ])('allows console.error in %s', async (from) => { expect(await reportsConsole(from)).toBe(false) - }) + }, 30_000) }) diff --git a/src/lib/ui/kit/layering.test.ts b/src/lib/ui/kit/layering.test.ts index b6505233..cd38a143 100644 --- a/src/lib/ui/kit/layering.test.ts +++ b/src/lib/ui/kit/layering.test.ts @@ -82,7 +82,7 @@ describe('layering rule', () => { [ROUTE, '$lib/server/session'], ])('blocks %s importing %s', async (from, specifier) => { expect(await isBlocked(from, specifier)).toBe(true) - }) + }, 30_000) it.each([ [KIT, './helper'], @@ -101,7 +101,7 @@ describe('layering rule', () => { [API, '$lib/app/state/auth.svelte'], ])('allows %s importing %s', async (from, specifier) => { expect(await isBlocked(from, specifier)).toBe(false) - }) + }, 30_000) it('allows type-only imports from a forbidden layer', async () => { expect(await isBlocked(APP, '$lib/server/session', true)).toBe(false) -- 2.51.2