Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(i18n): a locale's first load gets 12 s on a busy CI shard

Maurice9a7c5201069c
diff --git a/client/tests/unit/i18n/TranslationContext.test.tsx b/client/tests/unit/i18n/TranslationContext.test.tsx
index 48382eb1e..1bd7c9249 100644
--- a/client/tests/unit/i18n/TranslationContext.test.tsx
+++ b/client/tests/unit/i18n/TranslationContext.test.tsx
@@ -26,8 +26,10 @@ function HtmlProbe({ tKey, params }: { tKey: string; params?: Record<string, str
}
// A language's string table is built from its files the first time it is asked
-// for; on a busy runner that can take longer than waitFor's default second.
-const FIRST_LOAD = { timeout: 5000 };
+// for; on a busy runner that can take longer than waitFor's default second,
+// and with every locale's files grown it took past five on the CI shards
+// (12 s stays under the 15 s test timeout).
+const FIRST_LOAD = { timeout: 12_000 };
function withLanguage(language: string) {
seedStore(useSettingsStore, { settings: { language } });