feat: switch frontend indexing to code-first identifiers

This commit is contained in:
2026-04-03 16:25:11 +00:00
parent e4804128f6
commit 8208b3b27b
17 changed files with 176 additions and 158 deletions

View File

@@ -15,13 +15,15 @@ const localStorageMock = {
vi.stubGlobal('localStorage', localStorageMock)
// Mock window.location
delete window.location
window.location = Object.defineProperties({}, {
Object.defineProperty(window, 'location', {
configurable: true,
value: Object.defineProperties({}, {
pathname: { value: '/calendar', writable: true },
href: { value: 'http://localhost/calendar', writable: true },
assign: { value: vi.fn(), writable: true },
replace: { value: vi.fn(), writable: true },
}) as any
}) as any,
})
// Mock matchMedia
Object.defineProperty(window, 'matchMedia', {