@@ -125,10 +125,6 @@ describe("aider", async () => {
125125 `echo 'export CODER_MCP_AIDER_TASK_PROMPT="${ testPrompt } "' > /tmp/env_vars.sh` ,
126126 ) ;
127127
128- // Debug: print all output lines
129- console . log ( "DEBUG OUTPUT LINES:" ) ;
130- output . stdout . forEach ( ( line ) => console . log ( `> ${ line } ` ) ) ;
131-
132128 // Check if script contains the proper command construction with all required flags
133129 const instance = findResourceInstance ( state , "coder_script" ) ;
134130
@@ -142,7 +138,7 @@ describe("aider", async () => {
142138 // Verify the expected message format is correct
143139 expect (
144140 instance . script . includes (
145- '--message "Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT"' ,
141+ '--message \\ "Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT\\ "' ,
146142 ) ,
147143 ) . toBe ( true ) ;
148144
@@ -161,10 +157,12 @@ describe("aider", async () => {
161157 ) ,
162158 ) . toBe ( true ) ;
163159
164- // Verify the appropriate starting message is shown
165- expect ( output . stdout ) . toContain (
166- "Aider task started in screen session 'aider'. Check the logs for progress." ,
167- ) ;
160+ // Verify the script starts setting up a screen session
161+ expect (
162+ output . stdout . some ( ( line ) =>
163+ line . includes ( "Creating ~/.screenrc and adding multiuser settings" ) ,
164+ ) ,
165+ ) . toBe ( true ) ;
168166 } ) ;
169167
170168 it ( "executes pre and post install scripts" , async ( ) => {
0 commit comments