Skip to content

Commit

Permalink
test: maybe it will pass on windows now
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 6, 2023
1 parent 4bc1bd6 commit 06b06e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/sf.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ describe('sf integration', () => {

console.log('Testing that installation was successful...')
// It's important to use run.js instead of sf - otherwise it will resolve to the global version of sf
sf = join(extractedLocation, 'bin', process.platform === 'win32' ? 'run.cmd' : 'run.js')
sf = join(extractedLocation, 'bin', 'run.js')
// set the bin path so that plugin-update thinks this is updatable
// This would typically be set by the sf executable that's included in the tarball
// but since we're using bin/run.js to avoid the global sf, we need to set it manually
process.env.SF_BINPATH = sf

if (process.platform === 'win32') {
// append cmd /c to the command so that it can run on windows
sf = `cmd /c "${sf}"`
sf = `cmd /c "node ${sf}"`
}

const versionResult = await exec(`${sf} version --json`)
Expand Down

0 comments on commit 06b06e2

Please sign in to comment.