From bd5bb81757966d2c1df6a8205f538aef5b98fac5 Mon Sep 17 00:00:00 2001 From: ColemanRoo Date: Mon, 27 Jan 2025 10:49:09 -0600 Subject: [PATCH] Fix test runtime compile errors --- src/test/extension.test.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 1fc81c9026..31fe57d0d0 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -116,7 +116,8 @@ suite("Roo Code Extension Test Suite", () => { const commands = await vscode.commands.getCommands(true) console.log( "Available commands:", - commands.filter((cmd: string) => cmd.startsWith("roo-")), + // @ts-ignore + commands.filter((cmd) => cmd.startsWith("roo-")), ) // Test core commands are registered @@ -208,10 +209,8 @@ suite("Roo Code Extension Test Suite", () => { let webviewReady = false let messagesReceived = false const originalPostMessage = provider.postMessageToWebview.bind(provider) - provider.postMessageToWebview = async function (message: { - type: string - state: { codeMessages: string | any[] } - }) { + // @ts-ignore + provider.postMessageToWebview = async function (message) { if (message.type === "state") { webviewReady = true console.log("Webview state received:", message) @@ -281,8 +280,8 @@ suite("Roo Code Extension Test Suite", () => { if (messages && messages.length > 0) { console.log("Provider messages:", JSON.stringify(messages, null, 2)) const hasResponse = messages.some( - (m: { type: string; text: string }) => - m.type === "say" && m.text && m.text.toLowerCase().includes("roo"), + // @ts-ignore + (m) => m.type === "say" && m.text && m.text.toLowerCase().includes("roo"), ) if (hasResponse) { console.log('Found response containing "Roo" in provider messages') @@ -296,8 +295,8 @@ suite("Roo Code Extension Test Suite", () => { if (clineMessages && clineMessages.length > 0) { console.log("Cline messages:", JSON.stringify(clineMessages, null, 2)) const hasResponse = clineMessages.some( - (m: { type: string; text: string }) => - m.type === "say" && m.text && m.text.toLowerCase().includes("roo"), + // @ts-ignore + (m) => m.type === "say" && m.text && m.text.toLowerCase().includes("roo"), ) if (hasResponse) { console.log('Found response containing "Roo" in cline messages')