Skip to content

Commit

Permalink
Fixing Windows test running
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins committed Jun 24, 2024
1 parent ffa2489 commit beafc89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ async function main() {
// support in the `engines` section of our package.
const vscodeExecutablePath =
await downloadAndUnzipVSCode(VSCODE_TEST_VERSION);
const [cliPath, ...args] =
const [cliPath, ...cliArgs] =
resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);

// Install the Salesforce Extensions, which is a pre-req for our
// extension. Bail if there's an error.
const isWindows = process.platform === 'win32';
const installExtensionDepsOuput = spawnSync(
cliPath,
[...args, '--install-extension', CORE_EXTENSION_ID],
isWindows ? `"${cliPath}"` : cliPath,
[...cliArgs, '--install-extension', CORE_EXTENSION_ID],
{ stdio: 'inherit', encoding: 'utf-8' }
);
if (installExtensionDepsOuput.error) {
Expand Down

0 comments on commit beafc89

Please sign in to comment.