Skip to content

Commit 60900b0

Browse files
fix test for windows
1 parent f98e9b9 commit 60900b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/runTest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ async function main() {
1919
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
2020
console.log("cliPath: ", cliPath);
2121
console.log("args: ", args);
22+
const exec = path.basename(cliPath);
23+
console.log("Base: ", exec);
24+
25+
console.log("Base 2: ", path.dirname(cliPath));
2226

2327

2428
// Use cp.spawn / cp.exec for custom setup
25-
cp.spawnSync(cliPath, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
29+
cp.spawnSync(exec, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
30+
cwd: path.dirname(cliPath),
2631
encoding: 'utf-8',
2732
stdio: 'inherit',
2833
});

0 commit comments

Comments
 (0)