From 4bc1bd6f201f98d118aff90f19c0a7fc35f9caa9 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Fri, 6 Oct 2023 15:25:23 -0600 Subject: [PATCH] test: maybe it will pass on windows now --- test/integration/sf.integration.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/sf.integration.ts b/test/integration/sf.integration.ts index 35be72e5..ab1ab836 100644 --- a/test/integration/sf.integration.ts +++ b/test/integration/sf.integration.ts @@ -129,6 +129,12 @@ describe('sf integration', () => { // 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}"` + } + const versionResult = await exec(`${sf} version --json`) console.log(versionResult.stdout) expect(versionResult.code).to.equal(0)