fmt(js): `npm run fix` on merge (#79505)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-05 16:32:54 +00:00 committed by GitHub
parent 7e16241825
commit 9e9b3fc669
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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()