Summary
Add a test suite for dashboard rendering, data helpers, and core user flows so regressions are caught before merge.
Current Behaviour
The dashboard package exposes typecheck and lint scripts but does not include a visible test script. Pages and mock-data logic are not covered by automated tests.
Expected Behaviour
Core dashboard pages and data helpers should have deterministic tests that run locally and can be added to CI.
Suggested Implementation
Add Vitest and React Testing Library for component and page-level tests. Add tests for dashboard stats, pass rendering, member wallet truncation, status badges, and any new data access helpers.
Files or Areas Likely Affected
apps/dashboard/package.json
apps/dashboard/vitest.config.ts
apps/dashboard/test/
apps/dashboard/app/dashboard/page.tsx
apps/dashboard/app/passes/page.tsx
apps/dashboard/app/members/page.tsx
apps/dashboard/components/
apps/dashboard/lib/
Acceptance Criteria
Additional Notes
Keep tests independent from external APIs. Mock live integration boundaries.
Summary
Add a test suite for dashboard rendering, data helpers, and core user flows so regressions are caught before merge.
Current Behaviour
The dashboard package exposes
typecheckandlintscripts but does not include a visible test script. Pages and mock-data logic are not covered by automated tests.Expected Behaviour
Core dashboard pages and data helpers should have deterministic tests that run locally and can be added to CI.
Suggested Implementation
Add Vitest and React Testing Library for component and page-level tests. Add tests for dashboard stats, pass rendering, member wallet truncation, status badges, and any new data access helpers.
Files or Areas Likely Affected
apps/dashboard/package.jsonapps/dashboard/vitest.config.tsapps/dashboard/test/apps/dashboard/app/dashboard/page.tsxapps/dashboard/app/passes/page.tsxapps/dashboard/app/members/page.tsxapps/dashboard/components/apps/dashboard/lib/Acceptance Criteria
pnpm --filter @guildpass/dashboard testruns successfullyAdditional Notes
Keep tests independent from external APIs. Mock live integration boundaries.