Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -7,12 +7,17 @@ import { describe, expect, test } from "vitest";
const entrySource = readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), "entry.client.tsx"), "utf8");
describe("entry.client hydration contract", () => {
test("starts observability before hydration without waiting indefinitely", () => {
expect(entrySource).toContain("const observabilityReady = initClientObservability().catch");
expect(entrySource).toContain("const OBSERVABILITY_HYDRATION_GRACE_MS = 250");
expect(entrySource).toContain("function waitForObservabilityHydrationGrace()");
expect(entrySource).toContain("Promise.race([observabilityReady, timeout])");
expect(entrySource).toContain("await waitForObservabilityHydrationGrace()");
expect(entrySource).not.toContain("await observabilityReady;");
test("starts hydration immediately while observability initializes in parallel", () => {
expect(entrySource).toContain("void initClientObservability().catch");
expect(entrySource).toContain("hydrate();");
expect(entrySource).not.toContain("requestIdleCallback(hydrate)");
expect(entrySource).not.toContain("waitForObservabilityHydrationGrace");
expect(entrySource).not.toContain("OBSERVABILITY_HYDRATION_GRACE_MS");
});
test("uses revisioned locale assets without disabling the browser cache", () => {
expect(entrySource).toContain("publicEnv.VITE_APP_REVISION || publicEnv.VITE_SENTRY_RELEASE");
expect(entrySource).toContain("?v=${encodeURIComponent(localeAssetVersion)}");
expect(entrySource).not.toContain('requestOptions: { cache: "no-store" }');
});
});