Skip to content

Commit 21f04f5

Browse files
committed
Fix typo for test list
Modify where we log messages to the console for the test
1 parent d7b44a2 commit 21f04f5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/test/suite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function run(): Promise<void> {
2424
try {
2525
// Find all test files
2626
//const files = await glob("**/**.test.js", { cwd: testsRoot } leaving this commented out for now since we only have three tests
27-
const files = ["suite/modes.test.js", "suite/tasks.test.js", "suite/extension.test.js"]
27+
const files = ["suite/modes.test.js", "suite/task.test.js", "suite/extension.test.js"]
2828

2929
// Add files to the test suite
3030
files.forEach((f: string) => mocha.addFile(path.resolve(testsRoot, f)))

src/test/suite/modes.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ suite("Roo Code Modes", () => {
5151
assert.fail("No messages received")
5252
}
5353

54+
//Log the messages to the console
55+
globalThis.provider.messages.forEach(({ type, text }) => {
56+
if (type === "say") {
57+
console.log(text)
58+
}
59+
})
60+
61+
//Start Grading Portion of test to grade the response from 1 to 10
5462
await globalThis.provider.updateGlobalState("mode", "Ask")
5563
let output = globalThis.provider.messages.map(({ type, text }) => (type === "say" ? text : "")).join("\n")
5664
await globalThis.api.startNewTask(
@@ -84,7 +92,6 @@ suite("Roo Code Modes", () => {
8492
const grade = globalThis.provider.messages.find(
8593
({ type, text }) => type === "say" && !text?.includes("Grade: (1-10)") && text?.includes("Grade:"),
8694
)?.text
87-
console.log("THIS IS THE GRADE", grade)
8895
assert.ok(
8996
grade?.includes("Grade: 10") ||
9097
grade?.includes("Grade: 9") ||

0 commit comments

Comments
 (0)