Problem
Only 2 e2e test files exist and zero unit tests. This makes refactoring risky and slows development confidence.
What to change
- Set up Jest or Vitest for unit testing
- Add unit tests for critical business logic: streak calculations, pact validation, group membership rules
- Add integration tests for key API routes / server actions
- Target: at least 1 test file per
lib/ module to start
Acceptance criteria
Label: enhancement | Priority: high
Problem
Only 2 e2e test files exist and zero unit tests. This makes refactoring risky and slows development confidence.
What to change
lib/module to startAcceptance criteria
npm testworks locallyLabel: enhancement | Priority: high