mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 09:22:51 +00:00
Update packages/core/src/services/worktreeService.test.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -109,7 +109,7 @@ describe('worktree utilities', () => {
|
||||
});
|
||||
|
||||
it('should throw an error if git worktree add fails', async () => {
|
||||
vi.mocked(fs.access).mockRejectedValue(new Error('ENOENT'));
|
||||
vi.mocked(fs.promises.stat).mockRejectedValue({ code: 'ENOENT' } as any);
|
||||
vi.mocked(execa).mockRejectedValue(new Error('git failed'));
|
||||
|
||||
await expect(createWorktree(projectRoot, worktreeName)).rejects.toThrow(
|
||||
|
||||
Reference in New Issue
Block a user