CI / Lint & Test (push) Canceled after 0s
- .agent/: контекст, запросы, роадмап, задачи, шаблоны и протоколы - заготовка тестовой инфраструктуры: vitest, eslint, prettier, ci-workflow
13 lines
407 B
TypeScript
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,
|
|
});
|
|
} |