@@ -227,8 +227,6 @@ describe('Amazon Q Code Review', function () {
227227 range
228228 )
229229
230- console . log ( 'first diag' , sampleDiagnostic )
231-
232230 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
233231
234232 // Find the "View details" code action
@@ -237,8 +235,6 @@ describe('Amazon Q Code Review', function () {
237235
238236 // Execute the view details command
239237 if ( viewDetailsAction ?. command ) {
240- console . log ( 'has command, viewing details' , viewDetailsAction . command . command )
241- console . log ( 'view command args' , viewDetailsAction . command . arguments ! )
242238 await vscode . commands . executeCommand (
243239 viewDetailsAction . command . command ,
244240 ...viewDetailsAction . command . arguments !
@@ -265,7 +261,6 @@ describe('Amazon Q Code Review', function () {
265261
266262 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
267263
268- console . log ( 'webviewPanel' , webviewPanel )
269264 assert . ok ( webviewPanel , 'Security issue webview panel did not open after waiting' )
270265
271266 // Wait until viewDetailsAction.command is defined
@@ -283,13 +278,8 @@ describe('Amazon Q Code Review', function () {
283278 )
284279 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
285280
286- console . log ( 'viewDetails' , viewDetailsActionDefined )
287-
288281 assert . ok ( viewDetailsActionDefined , 'viewDetailsAction.command was not defined after waiting' )
289282
290- console . log ( 'command' , viewDetailsActionDefined )
291- console . log ( 'arguments' , viewDetailsActionDefined . arguments )
292- console . log ( 'arguments[0]' , viewDetailsActionDefined . arguments ?. [ 0 ] )
293283 const issue = viewDetailsActionDefined . arguments ?. [ 0 ] as CodeScanIssue
294284 console . log ( 'issue' , issue )
295285
@@ -299,9 +289,6 @@ describe('Amazon Q Code Review', function () {
299289 const foundIssue = SecurityIssueProvider . instance . issues
300290 . flatMap ( ( { issues } ) => issues )
301291 . find ( ( i ) => i . findingId === issue . findingId )
302- // console.log(SecurityIssueProvider.instance.issues)
303- // console.log('original issue', issue, issue.findingId, issue.suggestedFixes)
304- // console.log('issue', foundIssue, foundIssue?.findingId, foundIssue?.suggestedFixes)
305292
306293 return foundIssue ?. suggestedFixes ?. length !== undefined &&
307294 foundIssue ?. suggestedFixes ?. length > 0
@@ -617,7 +604,6 @@ describe('Amazon Q Code Review', function () {
617604 } finally {
618605 // Clean up git repository
619606 await fs . delete ( path . join ( fileDir , '.git' ) , { recursive : true } )
620- console . log ( 'done runnign test' )
621607 }
622608 } )
623609 } )
0 commit comments