Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
siakmun-aws committed Dec 27, 2024
1 parent 9a265b9 commit 912dfce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ export class FeatureDevController {
break
}

await session.sendMetricDataTelemetry(MetricDataOperationName.EndCodeGeneration, result, err.stack)
await session.sendMetricDataTelemetry(
MetricDataOperationName.EndCodeGeneration,
result,
'stack trace: ' + (err.stack ?? '')
)
throw err
} finally {
// Finish processing the event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,7 @@ describe('Controller', () => {
sendMetricDataTelemetrySpy.calledWith(
MetricDataOperationName.EndCodeGeneration,
metricResult,

// Stack trace should include the name of the test framework
sinon.match((str) => typeof str === 'string' && str.includes('Mocha'))
sinon.match((str) => typeof str === 'string' && str.includes('stack trace: '))
)
)
}
Expand Down

0 comments on commit 912dfce

Please sign in to comment.