Configure and add basic tests for critical components and functions.
Tasks
- Install testing dependencies (Jest, React Testing Library)
- Configure Jest for Next.js
- Create tests for: streak calculation functions, statistics functions, critical components (HabitCard, AddHabitModal)
- Basic integration tests for main flows
- Configure CI to run tests (optional)
Acceptance Criteria
- Tests configured and working
- Critical tests implemented
- Tests pass correctly
- Reasonable coverage
Configure and add basic tests for critical components and functions.
Tasks
Acceptance Criteria