Skip to content

Commit

Permalink
fix: use specific workspace folder's vitest exe
Browse files Browse the repository at this point in the history
  • Loading branch information
evanandrewrose authored and zxch3n committed Jun 18, 2022
1 parent 2239de7 commit da560fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ export async function updateSnapshot(
return

test = testItemIdMap.get(ctrl)!.get(test.id)!
const runner = new TestRunner(
determineWorkspaceForTestItems([test], vscode.workspace.workspaceFolders).uri.fsPath,
getVitestCommand(vscode.workspace.workspaceFolders[0].uri.fsPath),
)

const workspace = determineWorkspaceForTestItems([test], vscode.workspace.workspaceFolders)
const runner = new TestRunner(workspace.uri.fsPath, getVitestCommand(workspace.uri.fsPath))

const request = new vscode.TestRunRequest([test])
const tests = [test]
Expand Down

0 comments on commit da560fc

Please sign in to comment.