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) <[email protected]>
8 lines
345 B
TypeScript
8 lines
345 B
TypeScript
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 });
|