Files
zeroq-qol-modules/tests/setup.ts
T
oqyude 3e1d9776c3
CI / Lint & Test (push) Canceled after 0s
chore(metaagent): рабочее пространство агента и заготовка тестов
- .agent/: контекст, запросы, роадмап, задачи, шаблоны и протоколы
- заготовка тестовой инфраструктуры: vitest, eslint, prettier, ci-workflow
2026-10-23 00:29:55 +03:00

13 lines
407 B
TypeScript

// Vitest setup file: provides minimal DOM globals required by
// src/locales/index.ts (detectLocale reads document.documentElement.lang).
// Runs before any test file is imported.
if (typeof (globalThis as { document?: unknown }).document === 'undefined') {
Object.defineProperty(globalThis, 'document', {
value: {
documentElement: { lang: 'en' },
},
writable: true,
configurable: true,
});
}