test: remove 49 low-value test declarations (#37856)

This commit is contained in:
OrcaWin
2026-11-03 09:25:28 -08:00
committed by GitHub
parent e7542a3ca1
commit 39d02ae0bc
33 changed files with 9 additions and 898 deletions
@@ -17,10 +17,7 @@ vi.mock('../github/client', async (importOriginal) => ({
getPRForBranch: getPRForBranchMock
}))
import {
canCheckoutExistingLocalBranch,
getLocalGitHubPrForBranch
} from './runtime-worktree-create-git'
import { canCheckoutExistingLocalBranch } from './runtime-worktree-create-git'
beforeEach(() => {
getPRForBranchMock.mockReset()
@@ -99,19 +96,3 @@ describe('explicit local branch reuse on the execution host', () => {
expect(worktrees).not.toHaveBeenCalled()
})
})
describe('getLocalGitHubPrForBranch', () => {
it('routes the PR lookup through the WSL distro', async () => {
await getLocalGitHubPrForBranch('/repo', 'app', { wslDistro: 'Ubuntu' })
expect(getPRForBranchMock).toHaveBeenCalledWith('/repo', 'app', null, null, null, {
localGitExecOptions: { wslDistro: 'Ubuntu' }
})
})
it('uses the plain lookup without project git options', async () => {
await getLocalGitHubPrForBranch('/repo', 'app', {})
expect(getPRForBranchMock).toHaveBeenCalledWith('/repo', 'app')
})
})