Skip to content

Fix skipped MeetingsScreen test suite #375

@claude

Description

@claude

Summary

The MeetingsScreen test suite is currently skipped with a TODO comment indicating mock setup issues. This reduces test coverage for the meetings attendance tracking feature.

Location

  • File: __tests__/app/program/meetings.test.tsx:106
  • TODO Comment: Line 105: // TODO: Fix mock setup - tests fail with "Unable to find node on an unmounted component"

Current State

describe.skip('MeetingsScreen', () => {
  // Tests are skipped
});

Problem

Tests fail with the error: "Unable to find node on an unmounted component"

This typically indicates:

  1. Async operations completing after component unmount
  2. Mock cleanup issues
  3. Missing act() wrappers around state updates

Suggested Fix

  1. Review the mock setup for useFocusEffect at line 78-86
  2. Ensure proper cleanup in test teardown
  3. Wrap async operations in act() where needed
  4. Consider using waitFor with proper timeout settings

Related

Acceptance Criteria

  • Test suite runs without skip
  • All existing tests pass
  • No "unmounted component" warnings
  • Coverage for MeetingsScreen is restored

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