Skip to content

Add comprehensive test coverage (target 80%+) #42

@thedhanawada

Description

@thedhanawada

Problem

Current test coverage is ~15-20%. Existing tests cover StateManager, EventForm, and DOMUtils but many modules have zero coverage.

Scope

Add tests for:

  • BaseComponent lifecycle
  • ForceCalendar (main component) — initialization, view switching, event handling
  • MonthViewRenderer
  • WeekViewRenderer
  • DayViewRenderer
  • EventBus — subscription, wildcards, cleanup
  • StyleUtils
  • DateUtils (interface-specific)

Acceptance Criteria

  • 80%+ line coverage
  • All renderers have rendering tests (snapshot or DOM assertion)
  • Event delegation tested
  • View switching tested

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:0-foundationImmediate fixes and test infrastructurepriority:criticalMust fix before any releasetype:testingTest coverage and infrastructure

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions