Skip to content

Add unit tests for program screens (daily, literature) #376

@claude

Description

@claude

Summary

The Program section screens daily.tsx and literature.tsx lack dedicated unit test files. These screens are part of the new 12-step program feature and should have test coverage.

Missing Tests

Screen Path Test File Needed
Daily app/(app)/(tabs)/program/daily.tsx __tests__/app/program/daily.test.tsx
Literature app/(app)/(tabs)/program/literature.tsx __tests__/app/program/literature.test.tsx

Existing Test Pattern

Tests for similar screens exist and can be used as templates:

  • __tests__/app/program/prayers.test.tsx - Prayer cards rendering
  • __tests__/app/program/meetings.test.tsx - Calendar and meeting tracking (currently skipped)

Test Coverage Should Include

daily.tsx

  • Daily reflection rendering
  • Date navigation
  • Content loading states
  • Error handling

literature.tsx

  • Literature list rendering
  • Search/filter functionality (if any)
  • Item selection
  • Loading and error states

Related

Acceptance Criteria

  • __tests__/app/program/daily.test.tsx created with basic coverage
  • __tests__/app/program/literature.test.tsx created with basic coverage
  • Tests follow existing patterns using renderWithProviders()
  • All tests pass in CI

Created from daily codebase review #374

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions