test: remove low-value predicates, inventories and helper echoes (#33778)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-25 22:57:11 -07:00
committed by GitHub
co-authored by OrcaWin
parent a66f6bf011
commit cc3ca668d8
114 changed files with 19 additions and 2687 deletions
@@ -1,31 +0,0 @@
import { describe, expect, it } from 'vitest'
import { ghRepoExecOptions, githubRepoContext } from './github-repository-identity'
describe('ghRepoExecOptions ghAccount threading', () => {
it('keeps ghAccount when cwd is present for local repos', () => {
expect(
ghRepoExecOptions(
githubRepoContext('/repo', null, {
wslDistro: 'Ubuntu',
ghAccount: { host: 'github.com', user: 'Alice' }
})
)
).toEqual({
cwd: '/repo',
wslDistro: 'Ubuntu',
ghAccount: { host: 'github.com', user: 'Alice' }
})
})
it('keeps ghAccount when SSH omits cwd', () => {
expect(
ghRepoExecOptions(
githubRepoContext('/remote/repo', 'ssh-1', {
ghAccount: { host: 'github.acme.com', user: 'Bob' }
})
)
).toEqual({
ghAccount: { host: 'github.acme.com', user: 'Bob' }
})
})
})