mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
test(client): expand frontend test suite to 69.1% coverage
Add and extend tests across 32 files (+10 595 lines) covering Admin panels (AuditLog, Backup, DevNotifications, GitHub), Collab (Chat, Notes, Panel, Polls), Planner (DayDetailPanel, DayPlanSidebar), Settings (DisplaySettings, Integrations, MapSettings), Files (FileManager, FilesPage), Map, Layout (DemoBanner, InAppNotificationBell), shared pickers (CustomDateTimePicker, CustomTimePicker), Vacay holidays, pages (Dashboard, Login), unit stores (authStore, inAppNotificationStore), API (authUrl, client integration), and i18n. Also updates sonar-project.properties and MSW trip handlers to support the new cases.
This commit is contained in:
@@ -7,16 +7,15 @@ sonar.sources=client/src,server/src
|
||||
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**
|
||||
|
||||
# Tests
|
||||
sonar.tests=server/tests
|
||||
sonar.test.inclusions=server/tests/**/*.ts
|
||||
sonar.tests=server/tests,client/tests,client/src
|
||||
sonar.test.inclusions=server/tests/**/*.ts,client/**/*.test.ts,client/**/*.test.tsx
|
||||
|
||||
# Coverage — path relative to repo root
|
||||
sonar.javascript.lcov.reportPaths=server/coverage/lcov.info
|
||||
sonar.javascript.lcov.reportPaths=server/coverage/lcov.info,client/coverage/lcov.info
|
||||
|
||||
# Exclude client from coverage requirements (no frontend test suite yet)
|
||||
# Exclude infrastructure/bootstrap files that are always mocked or not unit-testable
|
||||
# Exclude test files from source analysis and exclude infrastructure/bootstrap files
|
||||
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**,**/*.test.ts,**/*.test.tsx
|
||||
sonar.coverage.exclusions=\
|
||||
client/**,\
|
||||
server/src/index.ts,\
|
||||
server/src/db/database.ts,\
|
||||
server/src/db/seeds.ts,\
|
||||
|
||||
Reference in New Issue
Block a user