File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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 ) ) )
Original file line number Diff line number Diff 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" ) ||
You can’t perform that action at this time.
0 commit comments