Initial Commit

This commit is contained in:
2025-06-18 19:08:13 +01:00
parent 83e8103969
commit 32af612bd6
20 changed files with 2708 additions and 34 deletions

18
vitest-setup-client.ts Normal file
View File

@ -0,0 +1,18 @@
import '@testing-library/jest-dom/vitest';
import { vi } from 'vitest';
// required for svelte5 + jsdom as jsdom does not support matchMedia
Object.defineProperty(window, 'matchMedia', {
writable: true,
enumerable: true,
value: vi.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addEventListener: vi.fn(),
removeEventListener: vi.fn(),
dispatchEvent: vi.fn()
}))
});
// add more mocks here if you need them