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

@@ -14,8 +14,25 @@ const entrySource = readFileSync(
);
describe("entry.server cache-control contract", () => {
test("reuses the process-level locale resource snapshot instead of reading locale files per request", () => {
expect(entrySource).toContain("getServerI18nResourcesSnapshot");
expect(entrySource).toContain("resources,");
expect(entrySource).not.toContain('from "i18next-fs-backend"');
});
test("uses a request-local translator and never mutates the process language during SSR", () => {
expect(entrySource).toContain("runWithRequestI18nScope");
expect(entrySource).toContain("runWithServerI18nLanguage");
expect(entrySource).toContain("getServerRequestI18nLanguage");
expect(entrySource).not.toContain("syncServerGlobalI18nLanguage");
expect(entrySource).not.toContain("changeLanguage(");
});
test("declares UTF-8 on streamed HTML responses", () => {
expect(entrySource).toContain('responseHeaders.set("Content-Type", "text/html; charset=utf-8")');
});
test("sets `no-store` on HTML responses when no loader-provided value exists", () => {
expect(entrySource).toContain('responseHeaders.set("Content-Type", "text/html")');
expect(entrySource).toMatch(/if \(!responseHeaders\.has\("Cache-Control"\)\)/);
expect(entrySource).toContain('responseHeaders.set("Cache-Control", "no-store")');
});