@@ -227,8 +227,6 @@ describe('Amazon Q Code Review', function () {
227
227
range
228
228
)
229
229
230
- console . log ( 'first diag' , sampleDiagnostic )
231
-
232
230
await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
233
231
234
232
// Find the "View details" code action
@@ -237,8 +235,6 @@ describe('Amazon Q Code Review', function () {
237
235
238
236
// Execute the view details command
239
237
if ( viewDetailsAction ?. command ) {
240
- console . log ( 'has command, viewing details' , viewDetailsAction . command . command )
241
- console . log ( 'view command args' , viewDetailsAction . command . arguments ! )
242
238
await vscode . commands . executeCommand (
243
239
viewDetailsAction . command . command ,
244
240
...viewDetailsAction . command . arguments !
@@ -265,7 +261,6 @@ describe('Amazon Q Code Review', function () {
265
261
266
262
await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
267
263
268
- console . log ( 'webviewPanel' , webviewPanel )
269
264
assert . ok ( webviewPanel , 'Security issue webview panel did not open after waiting' )
270
265
271
266
// Wait until viewDetailsAction.command is defined
@@ -283,13 +278,8 @@ describe('Amazon Q Code Review', function () {
283
278
)
284
279
await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
285
280
286
- console . log ( 'viewDetails' , viewDetailsActionDefined )
287
-
288
281
assert . ok ( viewDetailsActionDefined , 'viewDetailsAction.command was not defined after waiting' )
289
282
290
- console . log ( 'command' , viewDetailsActionDefined )
291
- console . log ( 'arguments' , viewDetailsActionDefined . arguments )
292
- console . log ( 'arguments[0]' , viewDetailsActionDefined . arguments ?. [ 0 ] )
293
283
const issue = viewDetailsActionDefined . arguments ?. [ 0 ] as CodeScanIssue
294
284
console . log ( 'issue' , issue )
295
285
@@ -299,9 +289,6 @@ describe('Amazon Q Code Review', function () {
299
289
const foundIssue = SecurityIssueProvider . instance . issues
300
290
. flatMap ( ( { issues } ) => issues )
301
291
. 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)
305
292
306
293
return foundIssue ?. suggestedFixes ?. length !== undefined &&
307
294
foundIssue ?. suggestedFixes ?. length > 0
@@ -617,7 +604,6 @@ describe('Amazon Q Code Review', function () {
617
604
} finally {
618
605
// Clean up git repository
619
606
await fs . delete ( path . join ( fileDir , '.git' ) , { recursive : true } )
620
- console . log ( 'done runnign test' )
621
607
}
622
608
} )
623
609
} )
0 commit comments