mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user