fix: CI/CD test failures and invalid Go version

- Fix go.mod Go version from invalid 1.25.7 to 1.23
- Fix Dockerfile golang image from 1.25 to 1.23
- Add window.matchMedia mock for jsdom themeStore tests
- Exclude e2e/ from Vitest to prevent Playwright test conflicts
- Add frontend test step to both CI workflows
This commit is contained in:
Tomas Dvorak
2026-04-27 09:04:30 +02:00
parent eadacd9e66
commit a07fca997e
7 changed files with 229 additions and 77 deletions
+14
View File
@@ -0,0 +1,14 @@
import '@testing-library/jest-dom/vitest';
// Mock window.matchMedia for themeStore tests
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: query.includes('prefers-color-scheme: dark') ? false : false,
media: query,
onchange: null,
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => {},
}),
});