-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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:
- Async operations completing after component unmount
- Mock cleanup issues
- Missing
act()wrappers around state updates
Suggested Fix
- Review the mock setup for
useFocusEffectat line 78-86 - Ensure proper cleanup in test teardown
- Wrap async operations in
act()where needed - Consider using
waitForwith proper timeout settings
Related
- References summary issue 📋 Daily Codebase Review - 2026-02-04 #374
- Component:
app/(app)/(tabs)/program/meetings.tsx
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels