16 Tests ohne Browser-Abhängigkeit (jsdom): useIsDesktop (matchMedia-Reaktion), client.ts (ApiError, Popup-Blocker-Fix bei ladeDokumentAnsehen), CommandPalette (Debounce/Escape/Material-Treffer-Hinweis), ObjektListPage (Standort- Gruppierung, Kacheln-Umschalter, localStorage-Persistenz, Suche). Vitest separat von vite.config.ts (eigene vitest.config.ts), e2e/*.spec.ts (Playwright) explizit ausgeschlossen. CI führt `npm run test` jetzt vor dem Build aus. Nebenbei: CLAUDE.md ins .gitignore aufgenommen (bleibt lokal, nicht Teil des Repos). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"name": "mabea-frontend",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-slot": "^1.3.3",
|
|
"@zxing/browser": "^0.1.5",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"idb-keyval": "^6.2.1",
|
|
"lucide-react": "^1.42.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-grid-layout": "^2.2.4",
|
|
"react-router-dom": "^6.26.2",
|
|
"tailwind-merge": "^3.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.47.2",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.7",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"jsdom": "^25.0.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "^5.5.4",
|
|
"vite": "^5.4.6",
|
|
"vite-plugin-pwa": "^0.20.5",
|
|
"vitest": "^2.1.9"
|
|
}
|
|
}
|