diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index c538541a4b..0d0e68015f 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -24,7 +24,7 @@ export async function run(): Promise { try { // Find all test files //const files = await glob("**/**.test.js", { cwd: testsRoot } leaving this commented out for now since we only have three tests - const files = ["suite/modes.test.js", "suite/tasks.test.js", "suite/extension.test.js"] + const files = ["suite/modes.test.js", "suite/task.test.js", "suite/extension.test.js"] // Add files to the test suite files.forEach((f: string) => mocha.addFile(path.resolve(testsRoot, f))) diff --git a/src/test/suite/modes.test.ts b/src/test/suite/modes.test.ts index 6f20ee3b9e..56eda6e417 100644 --- a/src/test/suite/modes.test.ts +++ b/src/test/suite/modes.test.ts @@ -51,6 +51,14 @@ suite("Roo Code Modes", () => { assert.fail("No messages received") } + //Log the messages to the console + globalThis.provider.messages.forEach(({ type, text }) => { + if (type === "say") { + console.log(text) + } + }) + + //Start Grading Portion of test to grade the response from 1 to 10 await globalThis.provider.updateGlobalState("mode", "Ask") let output = globalThis.provider.messages.map(({ type, text }) => (type === "say" ? text : "")).join("\n") await globalThis.api.startNewTask( @@ -84,7 +92,6 @@ suite("Roo Code Modes", () => { const grade = globalThis.provider.messages.find( ({ type, text }) => type === "say" && !text?.includes("Grade: (1-10)") && text?.includes("Grade:"), )?.text - console.log("THIS IS THE GRADE", grade) assert.ok( grade?.includes("Grade: 10") || grade?.includes("Grade: 9") ||