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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user