Skip to content

Commit d3bd246

Browse files
committed
fix get workspace folder function
1 parent 33ea9a6 commit d3bd246

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ import path from 'path'
2121
import { ScanAction, scanProgressMessage } from '../../../src/app/amazonqScan/models/constants'
2222

2323
function getWorkspaceFolder(): string {
24-
return (
25-
vscode.workspace.workspaceFolders?.[0]?.uri.fsPath ??
26-
path.join(__dirname, '../../../../core/src/testFixtures/workspaceFolder')
27-
)
24+
return vscode.workspace.workspaceFolders![0].uri.fsPath
2825
}
2926

3027
describe('Amazon Q Code Review', function () {

0 commit comments

Comments
 (0)