fix(frontend): restore full admin gates and preserve analytics protocol

This commit is contained in:
devops committed 2026-10-25 06:59:37 +00:00
1 parent 448c250944
commit 1bb6274b35
6 files changed
+37 -8

No files matched your search

+12
View File
@@ -1 +1,13 @@
import '@testing-library/jest-dom/vitest';
// Vitest preserves Node 26's host storage globals when populating jsdom.
// Bind the actual jsdom Storage objects, not the unavailable host storage.
const browserWindow = (globalThis as typeof globalThis & {
jsdom: { window: Window };
}).jsdom.window;
for (const name of ['localStorage', 'sessionStorage'] as const) {
Object.defineProperty(globalThis, name, {
configurable: true,
value: browserWindow[name],
});
}