Initial commit

This commit is contained in:
titver968
2025-02-25 15:30:55 +01:00
parent c2cd5a1069
commit ea1a39d1cb
21 changed files with 5392 additions and 0 deletions

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