From 9e9b3fc669d5cd49d706dc5fa32be4870692c976 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:32:54 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#79505) Co-authored-by: github-actions[bot] --- apps/desktop/electron/git-worktree-ops.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/desktop/electron/git-worktree-ops.test.ts b/apps/desktop/electron/git-worktree-ops.test.ts index 0c4d94c30124e..43af70e83dc3d 100644 --- a/apps/desktop/electron/git-worktree-ops.test.ts +++ b/apps/desktop/electron/git-worktree-ops.test.ts @@ -328,6 +328,7 @@ test('addWorktree: base origin/main does not set up upstream tracking', async () function seedRemoteAndClone(label, branches) { const remoteDir = fs.mkdtempSync(path.join(os.tmpdir(), `hermes-${label}-remote-`)) const cloneDir = fs.mkdtempSync(path.join(os.tmpdir(), `hermes-${label}-clone-`)) + const remoteGit = (...args) => execFileSync('git', ['-C', remoteDir, ...args]) .toString() @@ -385,6 +386,7 @@ test('addWorktree: a remote branch becomes a local branch tracking it', async () try { const result = await addWorktree(cloneDir, { existingBranch: 'origin/teammate-work' }, 'git') + const inTree = (...args) => execFileSync('git', ['-C', result.path, ...args]) .toString() @@ -408,6 +410,7 @@ test('addWorktree: a remote branch becomes a local branch tracking it', async () test('addWorktree: a remote default branch gets its own worktree, not a home switch', async () => { const { cloneDir, remoteDir } = seedRemoteAndClone('convert-remote-default', []) + const git = (...args) => execFileSync('git', ['-C', cloneDir, ...args]) .toString()