test(coding-agent): update MCP reauth fake for reload deps

reloadServers() now reads ctx.settings and session.setMCPPromptCommands, which
the shared /mcp reauth|unauth harness did not provide, so those tests threw
inside reload and failed their showError assertions. Add both members to the
fake context.

Fixes #7189
This commit is contained in:
roboomp
2026-07-31 16:59:38 +00:00
parent 62d7a7c5c9
commit b8ab418dd6
@@ -69,8 +69,12 @@ function createController(authStorage: AuthStorage, mcpManagerOverrides: Record<
pendingProviderId: undefined,
tryClaimInput: vi.fn(),
},
settings: {
get: vi.fn((_key: string): unknown => undefined),
},
session: {
refreshMCPTools: vi.fn(),
setMCPPromptCommands: vi.fn(),
modelRegistry: { authStorage },
},
mcpManager,