Skip to content

Commit aa43acb

Browse files
committed
more logs :(
1 parent b2f6027 commit aa43acb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/amazonq/test/e2e/amazonq/review.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ describe('Amazon Q Code Review', function () {
228228
range
229229
)
230230

231+
console.log('first diag', sampleDiagnostic)
232+
231233
await new Promise((resolve) => setTimeout(resolve, 1000))
232234

233235
// Find the "View details" code action
@@ -236,7 +238,8 @@ describe('Amazon Q Code Review', function () {
236238

237239
// Execute the view details command
238240
if (viewDetailsAction?.command) {
239-
console.log('has command, viewing details')
241+
console.log('has command, viewing details', viewDetailsAction.command.command)
242+
console.log('view command args', viewDetailsAction.command.arguments!)
240243
await vscode.commands.executeCommand(
241244
viewDetailsAction.command.command,
242245
...viewDetailsAction.command.arguments!
@@ -297,8 +300,9 @@ describe('Amazon Q Code Review', function () {
297300
const foundIssue = SecurityIssueProvider.instance.issues
298301
.flatMap(({ issues }) => issues)
299302
.find((i) => i.findingId === issue.findingId)
300-
console.log('original issue', issue, issue.fixJobId, issue.suggestedFixes)
301-
console.log('issue', foundIssue?.fixJobId, foundIssue?.suggestedFixes)
303+
console.log(SecurityIssueProvider.instance.issues)
304+
console.log('original issue', issue, issue.findingId, issue.suggestedFixes)
305+
console.log('issue', foundIssue, foundIssue?.findingId, foundIssue?.suggestedFixes)
302306

303307
return foundIssue?.suggestedFixes?.length !== undefined &&
304308
foundIssue?.suggestedFixes?.length > 0

0 commit comments

Comments
 (0)