2025-11-12 17:50:44 +01:00
|
|
|
{
|
|
|
|
|
"name": "frontend",
|
|
|
|
|
"private": true,
|
|
|
|
|
"version": "0.0.0",
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"dev": "vite",
|
|
|
|
|
"build": "vite build",
|
|
|
|
|
"lint": "eslint .",
|
test(pwa): add comprehensive PWA and Vitest test suite
- Install Vitest and React Testing Library for frontend tests
- Configure Vitest with jsdom environment and coverage
- Add test setup file with global mocks (matchMedia, IntersectionObserver)
- Write InstallPWA component tests (14 tests):
- iOS detection and manual installation instructions
- Android/Chrome beforeinstallprompt event handling
- Install and dismiss functionality
- 7-day dismissal persistence (localStorage)
- Installed state detection (standalone mode)
- Write PWA configuration tests (28 tests):
- App icons existence (PNG and SVG)
- iOS splash screens for multiple devices
- Vite PWA plugin configuration
- index.html meta tags (iOS PWA support)
- Manifest schema validation
- Service worker configuration (Workbox)
- Write service worker tests (24 tests):
- Service worker registration and lifecycle
- Workbox integration
- Cache Storage API operations
- Migrate existing WebRTC tests from Jest to Vitest (25 tests):
- Update imports to use Vitest (vi.fn, describe, it, expect)
- Fix WebRTCWarning and webrtcDetection test expectations
- Add test scripts to package.json (test, test:watch, test:ui, test:coverage)
All 91 tests passing (InstallPWA: 14, PWA config: 28, Service Worker: 24,
WebRTC: 25 total across 2 files)
2025-11-19 21:24:34 +01:00
|
|
|
"preview": "vite preview",
|
|
|
|
|
"test": "vitest run",
|
|
|
|
|
"test:watch": "vitest",
|
|
|
|
|
"test:ui": "vitest --ui",
|
|
|
|
|
"test:coverage": "vitest run --coverage"
|
2025-11-12 17:50:44 +01:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"lucide-react": "^0.553.0",
|
2025-11-14 14:11:24 +01:00
|
|
|
"qrcode.react": "^4.2.0",
|
2025-11-12 17:50:44 +01:00
|
|
|
"react": "^19.2.0",
|
|
|
|
|
"react-dom": "^19.2.0",
|
2025-11-21 21:27:03 +01:00
|
|
|
"react-hot-toast": "^2.6.0",
|
2025-11-12 22:42:15 +01:00
|
|
|
"react-router-dom": "^7.9.5",
|
|
|
|
|
"socket.io-client": "^4.8.1"
|
2025-11-12 17:50:44 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@eslint/js": "^9.39.1",
|
test(pwa): add comprehensive PWA and Vitest test suite
- Install Vitest and React Testing Library for frontend tests
- Configure Vitest with jsdom environment and coverage
- Add test setup file with global mocks (matchMedia, IntersectionObserver)
- Write InstallPWA component tests (14 tests):
- iOS detection and manual installation instructions
- Android/Chrome beforeinstallprompt event handling
- Install and dismiss functionality
- 7-day dismissal persistence (localStorage)
- Installed state detection (standalone mode)
- Write PWA configuration tests (28 tests):
- App icons existence (PNG and SVG)
- iOS splash screens for multiple devices
- Vite PWA plugin configuration
- index.html meta tags (iOS PWA support)
- Manifest schema validation
- Service worker configuration (Workbox)
- Write service worker tests (24 tests):
- Service worker registration and lifecycle
- Workbox integration
- Cache Storage API operations
- Migrate existing WebRTC tests from Jest to Vitest (25 tests):
- Update imports to use Vitest (vi.fn, describe, it, expect)
- Fix WebRTCWarning and webrtcDetection test expectations
- Add test scripts to package.json (test, test:watch, test:ui, test:coverage)
All 91 tests passing (InstallPWA: 14, PWA config: 28, Service Worker: 24,
WebRTC: 25 total across 2 files)
2025-11-19 21:24:34 +01:00
|
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
|
|
|
"@testing-library/react": "^16.3.0",
|
|
|
|
|
"@testing-library/user-event": "^14.6.1",
|
2025-11-12 17:50:44 +01:00
|
|
|
"@types/react": "^19.2.2",
|
|
|
|
|
"@types/react-dom": "^19.2.2",
|
|
|
|
|
"@vitejs/plugin-react": "^5.1.0",
|
test(pwa): add comprehensive PWA and Vitest test suite
- Install Vitest and React Testing Library for frontend tests
- Configure Vitest with jsdom environment and coverage
- Add test setup file with global mocks (matchMedia, IntersectionObserver)
- Write InstallPWA component tests (14 tests):
- iOS detection and manual installation instructions
- Android/Chrome beforeinstallprompt event handling
- Install and dismiss functionality
- 7-day dismissal persistence (localStorage)
- Installed state detection (standalone mode)
- Write PWA configuration tests (28 tests):
- App icons existence (PNG and SVG)
- iOS splash screens for multiple devices
- Vite PWA plugin configuration
- index.html meta tags (iOS PWA support)
- Manifest schema validation
- Service worker configuration (Workbox)
- Write service worker tests (24 tests):
- Service worker registration and lifecycle
- Workbox integration
- Cache Storage API operations
- Migrate existing WebRTC tests from Jest to Vitest (25 tests):
- Update imports to use Vitest (vi.fn, describe, it, expect)
- Fix WebRTCWarning and webrtcDetection test expectations
- Add test scripts to package.json (test, test:watch, test:ui, test:coverage)
All 91 tests passing (InstallPWA: 14, PWA config: 28, Service Worker: 24,
WebRTC: 25 total across 2 files)
2025-11-19 21:24:34 +01:00
|
|
|
"@vitest/ui": "^4.0.10",
|
2025-11-12 17:50:44 +01:00
|
|
|
"autoprefixer": "^10.4.22",
|
|
|
|
|
"eslint": "^9.39.1",
|
|
|
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
|
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
|
|
|
"globals": "^16.5.0",
|
test(pwa): add comprehensive PWA and Vitest test suite
- Install Vitest and React Testing Library for frontend tests
- Configure Vitest with jsdom environment and coverage
- Add test setup file with global mocks (matchMedia, IntersectionObserver)
- Write InstallPWA component tests (14 tests):
- iOS detection and manual installation instructions
- Android/Chrome beforeinstallprompt event handling
- Install and dismiss functionality
- 7-day dismissal persistence (localStorage)
- Installed state detection (standalone mode)
- Write PWA configuration tests (28 tests):
- App icons existence (PNG and SVG)
- iOS splash screens for multiple devices
- Vite PWA plugin configuration
- index.html meta tags (iOS PWA support)
- Manifest schema validation
- Service worker configuration (Workbox)
- Write service worker tests (24 tests):
- Service worker registration and lifecycle
- Workbox integration
- Cache Storage API operations
- Migrate existing WebRTC tests from Jest to Vitest (25 tests):
- Update imports to use Vitest (vi.fn, describe, it, expect)
- Fix WebRTCWarning and webrtcDetection test expectations
- Add test scripts to package.json (test, test:watch, test:ui, test:coverage)
All 91 tests passing (InstallPWA: 14, PWA config: 28, Service Worker: 24,
WebRTC: 25 total across 2 files)
2025-11-19 21:24:34 +01:00
|
|
|
"happy-dom": "^20.0.10",
|
|
|
|
|
"jsdom": "^27.2.0",
|
2025-11-12 17:50:44 +01:00
|
|
|
"postcss": "^8.5.6",
|
|
|
|
|
"tailwindcss": "^3.4.18",
|
2025-11-19 20:59:26 +01:00
|
|
|
"vite": "^7.2.2",
|
|
|
|
|
"vite-plugin-pwa": "^1.1.0",
|
test(pwa): add comprehensive PWA and Vitest test suite
- Install Vitest and React Testing Library for frontend tests
- Configure Vitest with jsdom environment and coverage
- Add test setup file with global mocks (matchMedia, IntersectionObserver)
- Write InstallPWA component tests (14 tests):
- iOS detection and manual installation instructions
- Android/Chrome beforeinstallprompt event handling
- Install and dismiss functionality
- 7-day dismissal persistence (localStorage)
- Installed state detection (standalone mode)
- Write PWA configuration tests (28 tests):
- App icons existence (PNG and SVG)
- iOS splash screens for multiple devices
- Vite PWA plugin configuration
- index.html meta tags (iOS PWA support)
- Manifest schema validation
- Service worker configuration (Workbox)
- Write service worker tests (24 tests):
- Service worker registration and lifecycle
- Workbox integration
- Cache Storage API operations
- Migrate existing WebRTC tests from Jest to Vitest (25 tests):
- Update imports to use Vitest (vi.fn, describe, it, expect)
- Fix WebRTCWarning and webrtcDetection test expectations
- Add test scripts to package.json (test, test:watch, test:ui, test:coverage)
All 91 tests passing (InstallPWA: 14, PWA config: 28, Service Worker: 24,
WebRTC: 25 total across 2 files)
2025-11-19 21:24:34 +01:00
|
|
|
"vitest": "^4.0.10",
|
2025-11-19 20:59:26 +01:00
|
|
|
"workbox-window": "^7.4.0"
|
2025-11-12 17:50:44 +01:00
|
|
|
}
|
|
|
|
|
}
|