Task: Integration tests - File watcher integration (90% coverage)
Description
Create integration tests for the file system watcher that monitors the .claude/epics/ directory for changes. Test file change detection, debouncing, event emission, and integration with data providers with 90% minimum coverage.
Acceptance Criteria
Technical Details
- Create test file:
test/integration/services/fileWatcher.test.ts
- Test scenarios:
- Watcher initialization with correct glob pattern
- File create event triggers refresh
- File modify event triggers refresh
- File delete event triggers refresh
- Debouncing batches rapid changes (200-500ms)
- Events filtered to .md files only
- Watcher ignores non-epic/task files
- Multiple rapid changes handled correctly
- Watcher disposal stops monitoring
- Integration with Epic/Task data providers
- Use @vscode/test-electron for file system watcher API
- Create temporary test directories and files
- Simulate file system operations
- Test debounce timing with clock manipulation
- Verify event callbacks invoked correctly
- Files affected:
test/integration/services/*.test.ts (new)
Dependencies
Effort Estimate
- Size: M
- Hours: 6
- Parallel: true
Definition of Done
Task: Integration tests - File watcher integration (90% coverage)
Description
Create integration tests for the file system watcher that monitors the
.claude/epics/directory for changes. Test file change detection, debouncing, event emission, and integration with data providers with 90% minimum coverage.Acceptance Criteria
Technical Details
test/integration/services/fileWatcher.test.tstest/integration/services/*.test.ts(new)Dependencies
Effort Estimate
Definition of Done