From e8fe24f7550d527d582ec03b13fe117bed08a284 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Tue, 9 Jun 2026 11:44:30 +0200 Subject: [PATCH] ci: raise vitest testTimeout to 20s for the resource-constrained runner The 'narrow: detail renders inside a portaled drawer' test lazy-loads the drawer chunk and exceeded the 5s default on the slow CI container (setup alone took ~486s). Bump testTimeout on both vitest projects. Co-Authored-By: Claude Opus 4.8 (1M context) --- web/vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/vite.config.ts b/web/vite.config.ts index b777c42..1b66e94 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -28,6 +28,9 @@ export default defineConfig({ extends: true, test: { environment: "jsdom", + // The CI runner is heavily resource-constrained; lazy-loaded chunks + // (e.g. the object-detail drawer) can exceed the 5s default. + testTimeout: 20000, globals: true, setupFiles: ["./src/test/setup.ts"], environmentOptions: { @@ -46,6 +49,7 @@ export default defineConfig({ })], test: { name: 'storybook', + testTimeout: 20000, browser: { enabled: true, headless: true,