-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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 intervaldebounces rapid successive updatespreserves existing summaries when worktree list changesskips 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
- Change
describe.skiptodescribeat line 51 - Run tests and identify any failures
- Fix timer/async issues if tests are flaky (ensure proper
vi.advanceTimersByTimeandPromise.resolve()flushing) - Consider stabilizing with
waitFororact()patterns if needed - Verify all 4 tests pass consistently
Acceptance Criteria
-
describe.skipreplaced withdescribe - All 4 tests in the suite pass
- Tests are stable (no flakiness over 10+ runs)
- CI pipeline runs these tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels