Task: Integration tests - TreeDataProvider + VSCode API (90% coverage)
Description
Create integration tests for the TreeDataProvider that validate the complete Epic/Task hierarchy rendering in the VSCode tree view. Test the interaction between TreeDataProvider, TreeItem nodes, and VSCode's tree view APIs with 90% minimum coverage.
Acceptance Criteria
Technical Details
- Create test file:
test/integration/treeview/treeDataProvider.test.ts
- Test scenarios:
- Tree view registration with VSCode window API
- getChildren() with null (root), Epic node, Task node
- getTreeItem() returns properly configured TreeItem
- Epic nodes have correct collapsible state
- Task nodes have click commands configured
- Tree refresh triggers onDidChangeTreeData
- Empty epic handling (no tasks)
- Invalid file path handling
- Tree view reveal() functionality
- Use @vscode/test-electron for VSCode API integration
- Create test fixtures: sample epic/task files
- Test with actual VSCode tree view rendering
- Mock file system with test data
- Files affected:
test/integration/treeview/*.test.ts (new)
Dependencies
Effort Estimate
- Size: M
- Hours: 8
- Parallel: true
Definition of Done
Task: Integration tests - TreeDataProvider + VSCode API (90% coverage)
Description
Create integration tests for the TreeDataProvider that validate the complete Epic/Task hierarchy rendering in the VSCode tree view. Test the interaction between TreeDataProvider, TreeItem nodes, and VSCode's tree view APIs with 90% minimum coverage.
Acceptance Criteria
Technical Details
test/integration/treeview/treeDataProvider.test.tstest/integration/treeview/*.test.ts(new)Dependencies
Effort Estimate
Definition of Done