Summary
The test suite for useWorktreeSummaries hook is wrapped in describe.skip(), meaning these tests never run. This is a critical hook in the AI summarization pipeline and regressions could go undetected.
Current Behavior
tests/hooks/useWorktreeSummaries.test.tsx:51 uses describe.skip():
describe.skip('useWorktreeSummaries', () => {
Tests that are skipped:
enriches worktrees after the debounce interval
debounces rapid successive updates
preserves existing summaries when worktree list changes
skips enrichment when no changes are provided
Expected Behavior
These tests should run as part of the normal test suite to catch regressions in AI summary generation.
Affected Files
Deliverables
Tests
- Unskip the test suite
- Fix any flaky tests (likely related to fake timers and async hook flushing)
- Consider adding tests for edge cases:
- No API key / fallback behavior
- AI service errors
- Clean worktree handling
Root Cause
Unknown - tests may have been skipped due to flakiness with fake timers or async behavior. Investigation needed.
Tasks
Acceptance Criteria
Summary
The test suite for
useWorktreeSummarieshook is wrapped indescribe.skip(), meaning these tests never run. This is a critical hook in the AI summarization pipeline and regressions could go undetected.Current Behavior
tests/hooks/useWorktreeSummaries.test.tsx:51usesdescribe.skip():Tests that are skipped:
enriches worktrees after the debounce intervaldebounces rapid successive updatespreserves existing summaries when worktree list changesskips enrichment when no changes are providedExpected Behavior
These tests should run as part of the normal test suite to catch regressions in AI summary generation.
Affected Files
tests/hooks/useWorktreeSummaries.test.tsxDeliverables
Tests
Root Cause
Unknown - tests may have been skipped due to flakiness with fake timers or async behavior. Investigation needed.
Tasks
describe.skiptodescribeat line 51vi.advanceTimersByTimeandPromise.resolve()flushing)waitFororact()patterns if neededAcceptance Criteria
describe.skipreplaced withdescribe