@@ -18,6 +18,7 @@ import {
1818 SecurityScanStep ,
1919 amazonqCodeIssueDetailsTabTitle ,
2020 CodeWhispererConstants ,
21+ CodeScanIssue ,
2122} from 'aws-core-vscode/codewhisperer'
2223import path from 'path'
2324import { ScanAction , scanProgressMessage } from '../../../src/app/amazonqScan/models/constants'
@@ -287,7 +288,7 @@ describe('Amazon Q Code Review', function () {
287288 console . log ( 'command' , viewDetailsActionDefined )
288289 console . log ( 'arguments' , viewDetailsActionDefined . arguments )
289290 console . log ( 'arguments[0]' , viewDetailsActionDefined . arguments ?. [ 0 ] )
290- const issue = viewDetailsActionDefined . arguments ?. [ 0 ]
291+ const issue = viewDetailsActionDefined . arguments ?. [ 0 ] as CodeScanIssue
291292 console . log ( 'issue' , issue )
292293
293294 // Wait for the fix to be generated with polling
@@ -296,7 +297,7 @@ describe('Amazon Q Code Review', function () {
296297 const foundIssue = SecurityIssueProvider . instance . issues
297298 . flatMap ( ( { issues } ) => issues )
298299 . find ( ( i ) => i . findingId === issue . findingId )
299- console . log ( 'original issue' , issue . fixJobId , issue . suggestedFixes )
300+ console . log ( 'original issue' , issue , issue . fixJobId , issue . suggestedFixes )
300301 console . log ( 'issue' , foundIssue ?. fixJobId , foundIssue ?. suggestedFixes )
301302
302303 return foundIssue ?. suggestedFixes ?. length !== undefined &&
@@ -314,6 +315,7 @@ describe('Amazon Q Code Review', function () {
314315 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
315316
316317 console . log ( 'updated issue' , updatedIssue )
318+ console . log ( 'original issue' , issue )
317319
318320 // Verify the fix was generated by checking if the issue has suggestedFixes
319321 assert . ok ( updatedIssue , 'Could not find updated issue' )
0 commit comments