fix: add getMcpHub mock to Subtask Rate Limiting tests

The addition of defaultToolProtocol: "native" to model definitions now
triggers the buildNativeToolsArray code path which requires
provider.getMcpHub() to be defined. Added the missing mock method.
This commit is contained in:
Roo Code 2025-12-06 04:10:31 +00:00
parent 900039a0a3
commit 30363b0b23

View file

@ -981,6 +981,7 @@ describe("Cline", () => {
getState: vi.fn().mockResolvedValue({
apiConfiguration: mockApiConfig,
}),
getMcpHub: vi.fn().mockReturnValue(undefined),
say: vi.fn(),
postStateToWebview: vi.fn().mockResolvedValue(undefined),
postMessageToWebview: vi.fn().mockResolvedValue(undefined),