From 26a45e35b824fdedc62a637b3fb4df412f2e897e Mon Sep 17 00:00:00 2001 From: "kirill.novinskiy" Date: Mon, 26 Aug 2024 05:05:44 +0300 Subject: [PATCH] Added working directory to child process --- src/phpunittest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/phpunittest.ts b/src/phpunittest.ts index 9b66e05..f8a4852 100644 --- a/src/phpunittest.ts +++ b/src/phpunittest.ts @@ -331,6 +331,7 @@ export class TestRunner { const spawnResult = await new Promise((r) => r( spawnSync(runConfig.exec, runConfig.args, { + cwd: argBuilder.workspaceFolder, encoding: "utf8", }), ),