From b6254f26c7efb188729a2bbefa7430a81fcc6f06 Mon Sep 17 00:00:00 2001 From: Tian Feng Date: Wed, 6 Sep 2023 12:54:10 -0700 Subject: [PATCH] update nodeBin --- src/playwright-runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playwright-runner.ts b/src/playwright-runner.ts index cd1851f5..3c8bc60c 100644 --- a/src/playwright-runner.ts +++ b/src/playwright-runner.ts @@ -169,7 +169,7 @@ async function run(nodeBin: string, runCfgPath: string, suiteName: string) { console.log(`Sauce Playwright Runner ${packageInfo.version}`); console.log(`Running Playwright ${packageInfo.dependencies?.playwright || ''}`); - nodeBin = `${nodeBin}/node/bin/`; + nodeBin = `${path.dirname(nodeBin)}/node/bin/${path.basename(nodeBin)}`; console.log('nodeBin: ', nodeBin) let result: RunResult;