mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
test: Add mock for getCurrentBranch in pipeline orchestrator tests
This commit is contained in:
@@ -165,6 +165,7 @@ describe('PipelineOrchestrator', () => {
|
||||
|
||||
mockWorktreeResolver = {
|
||||
findWorktreeForBranch: vi.fn().mockResolvedValue('/test/worktree'),
|
||||
getCurrentBranch: vi.fn().mockResolvedValue('main'),
|
||||
} as unknown as WorktreeResolver;
|
||||
|
||||
mockConcurrencyManager = {
|
||||
|
||||
Reference in New Issue
Block a user