test: remove 247 low-value tests, including 22 suites (#36857)

* test: remove low-value suites and cases

* test: update wall-clock ratchet after low-value test removals
This commit is contained in:
OrcaWin
2026-11-01 02:54:00 +00:00
committed by GitHub
parent 14d29b8d24
commit 7ec9a6b1fc
74 changed files with 17 additions and 3269 deletions
@@ -16,16 +16,6 @@ const snapshot = {
}
describe('OpenCode execution-host primary-agent context', () => {
it('uses the resolved first selectable primary and leaves absent identity unknown', () => {
expect(parseOpenCodeLaunchModelContext(snapshot)).toEqual({ primaryAgent: 'build' })
expect(
parseOpenCodeLaunchModelContext({
...snapshot,
agents: { location: { directory }, data: [] }
})
).toBeNull()
})
it('uses recorded 2.0.19 resolved agents without inventing stale or disabled primaries', () => {
for (const capture of recordedCases) {
const original = JSON.parse(capture.configContent)
@@ -73,23 +63,6 @@ describe('OpenCode execution-host primary-agent context', () => {
}
})
it('tolerates absent model fields and unrelated agent records', () => {
expect(
parseOpenCodeLaunchModelContext({
...snapshot,
agents: {
location: { directory },
data: [
{ unrelated: true },
{ id: 'hidden', hidden: true },
{ id: 'child', mode: 'subagent' },
{ id: 'reviewer', mode: 'primary', model: null }
]
}
})
).toEqual({ primaryAgent: 'reviewer' })
})
it('never uses primary-agent data from a foreign location', () => {
expect(
parseOpenCodeLaunchModelContext({