Skip to content

Commit 0af99a9

Browse files
igorcostaAutohand Evolve
andcommitted
fix: use Node.js for both host script and CLI in test
The test was finding Node.js but still using process.execPath (Bun) as the cliCommand. This caused the host script to spawn the CLI with Bun, but the fake-cli.js script is designed for Node.js. Changed cliCommand from process.execPath to nodePath so both the host script and the CLI run with Node.js. Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
1 parent ee73ed0 commit 0af99a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/browser/chrome.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('browser/chrome', () => {
175175
await writeFile(
176176
hostScriptPath,
177177
buildNativeHostScript({
178-
cliCommand: process.execPath,
178+
cliCommand: nodePath,
179179
cliArgPrefix: [cliScriptPath],
180180
nodePath,
181181
}),

0 commit comments

Comments
 (0)