refactor(git): group worktree operations and ref owners (#37783)

* refactor(git): group worktree operations and ref owners

* test(git): retarget remaining concrete executor mocks
This commit is contained in:
Neil
2026-11-03 02:52:13 -08:00
committed by GitHub
parent d01fc8f60b
commit 2169b791b7
597 changed files with 6737 additions and 3274 deletions
+4 -1
View File
@@ -7,7 +7,10 @@ const { ghExecFileAsyncMock, rateLimitGuardMock, noteRateLimitSpendMock } = vi.h
noteRateLimitSpendMock: vi.fn()
}))
vi.mock('../git/runner', () => ({ ghExecFileAsync: ghExecFileAsyncMock }))
vi.mock('../git/command-runner/gh-exec-file', async (importOriginal) => ({
...(await importOriginal<Record<string, unknown>>()),
ghExecFileAsync: ghExecFileAsyncMock
}))
vi.mock('./rate-limit', () => ({
repositoryRateLimitGuard: rateLimitGuardMock,
noteRepositoryRateLimitSpend: noteRateLimitSpendMock