mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
fix: update new mcp tests
This commit is contained in:
parent
e1acb7cd6c
commit
28315f4fc9
1 changed files with 39 additions and 0 deletions
|
|
@ -271,6 +271,19 @@ describe("McpHub", () => {
|
|||
},
|
||||
}
|
||||
|
||||
// Set up mock connection
|
||||
const mockConnection: McpConnection = {
|
||||
server: {
|
||||
name: "test-server",
|
||||
config: "test-server-config",
|
||||
status: "connected",
|
||||
source: "global",
|
||||
},
|
||||
client: {} as any,
|
||||
transport: {} as any,
|
||||
}
|
||||
mcpHub.connections = [mockConnection]
|
||||
|
||||
// Mock reading initial config
|
||||
;(fs.readFile as jest.Mock).mockResolvedValueOnce(JSON.stringify(mockConfig))
|
||||
|
||||
|
|
@ -305,6 +318,19 @@ describe("McpHub", () => {
|
|||
},
|
||||
}
|
||||
|
||||
// Set up mock connection
|
||||
const mockConnection: McpConnection = {
|
||||
server: {
|
||||
name: "test-server",
|
||||
config: "test-server-config",
|
||||
status: "connected",
|
||||
source: "global",
|
||||
},
|
||||
client: {} as any,
|
||||
transport: {} as any,
|
||||
}
|
||||
mcpHub.connections = [mockConnection]
|
||||
|
||||
// Mock reading initial config
|
||||
;(fs.readFile as jest.Mock).mockResolvedValueOnce(JSON.stringify(mockConfig))
|
||||
|
||||
|
|
@ -338,6 +364,19 @@ describe("McpHub", () => {
|
|||
},
|
||||
}
|
||||
|
||||
// Set up mock connection
|
||||
const mockConnection: McpConnection = {
|
||||
server: {
|
||||
name: "test-server",
|
||||
config: "test-server-config",
|
||||
status: "connected",
|
||||
source: "global",
|
||||
},
|
||||
client: {} as any,
|
||||
transport: {} as any,
|
||||
}
|
||||
mcpHub.connections = [mockConnection]
|
||||
|
||||
// Mock reading initial config
|
||||
;(fs.readFile as jest.Mock).mockResolvedValueOnce(JSON.stringify(mockConfig))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue