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:
Adib234
2026-05-04 15:47:48 -04:00
committed by GitHub
parent 333344c5f0
commit e3dcd2a193
@@ -86,7 +86,7 @@ describe('worktree utilities', () => {
describe('createWorktree', () => {
it('should execute git worktree add with correct branch and path if it does not exist', async () => {
vi.mocked(fs.access).mockRejectedValue(new Error('ENOENT'));
vi.mocked(fs.promises.stat).mockRejectedValue({ code: 'ENOENT' } as any);
vi.mocked(execa).mockResolvedValue({ stdout: '' } as never);
const resultPath = await createWorktree(projectRoot, worktreeName);