mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(ui): give the integration vitest tier a wait ceiling matching its cost
Integration cases render a whole component tree and legitimately take about a second per availability round trip under load, so testing-library's 1000ms asyncUtilTimeout default flakes them. The ceiling is raised to 5s for the integration project only via a dedicated setup file; unit and component tiers keep the default Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f4308bc124
commit
9887b2e541
2 changed files with 4 additions and 0 deletions
3
ui/litellm-dashboard/tests/setup.integration.ts
Normal file
3
ui/litellm-dashboard/tests/setup.integration.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { configure } from "@testing-library/react";
|
||||
|
||||
configure({ asyncUtilTimeout: 5_000 });
|
||||
|
|
@ -68,6 +68,7 @@ const config: ViteUserConfig = {
|
|||
test: {
|
||||
...jsdomTier,
|
||||
name: "integration",
|
||||
setupFiles: ["tests/setupTests.ts", "tests/setup.integration.ts"],
|
||||
include: ["src/**/*.integration.test.tsx", "tests/**/*.integration.test.tsx"],
|
||||
exclude: ["node_modules/**"],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue