From 6c390efe7bece57ad1ca98886011e5763db663dc Mon Sep 17 00:00:00 2001 From: Nick Szaunig Date: Thu, 15 Oct 2026 18:05:35 +0200 Subject: [PATCH] test: raise Testing Library async timeout to 5 s The frontend image build runs ~240 spec files on a loaded runner; a first render in apiary-colonies-card.spec missed the default 1 s findByRole window in CI run 711 while it passes locally. 5 s stays well below the 15 s test timeout, so real hangs still show. Co-Authored-By: Claude Opus 5.5 (1M context) --- ApiCore-Frontend/vitest.setup.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ApiCore-Frontend/vitest.setup.ts b/ApiCore-Frontend/vitest.setup.ts index f149f27..50e18b3 100644 --- a/ApiCore-Frontend/vitest.setup.ts +++ b/ApiCore-Frontend/vitest.setup.ts @@ -1 +1,7 @@ import "@testing-library/jest-dom/vitest"; +import { configure } from "@testing-library/react"; + +// findBy*/waitFor default to 1 s. The image build runs ~240 spec files on a +// loaded runner, where a first render can take longer; 5 s keeps real hangs +// visible (testTimeout is 15 s) without flaky misses. +configure({ asyncUtilTimeout: 5_000 });