We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80489a6 commit 99e02faCopy full SHA for 99e02fa
packages/amazonq/test/unit/codewhisperer/service/securityScanHandler.test.ts
@@ -66,10 +66,7 @@ const buildMockListCodeScanFindingsResponse = (
66
})
67
68
function getWorkspaceFolder(): string {
69
- if (vscode.workspace.workspaceFolders !== undefined && vscode.workspace.workspaceFolders.length > 0) {
70
- return vscode.workspace.workspaceFolders[0].uri.toString().split('file://')[1]
71
- }
72
- return path.join(__dirname, '../../../../../../core/src/testFixtures/workspaceFolder')
+ return vscode.workspace.workspaceFolders?.[0]?.uri.fsPath ?? path.join(__dirname, '../../../../../../core/src/testFixtures/workspaceFolder')
73
}
74
75
describe('securityScanHandler', function () {
0 commit comments