Skip to content

Commit 87a2b98

Browse files
authored
fix: set cwd when debugging (#428)
1 parent 7f903d5 commit 87a2b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ export class TestRunner {
306306
name: `Mocha Test (${config.uri.fsPath})`,
307307
program: spawnArgs[1],
308308
args: [...spawnArgs.slice(2), ...(launchConfig.args || [])],
309+
cwd: path.dirname(config.uri.fsPath),
309310
env: { ...launchConfig.env, ...this.env.value },
310-
311311
__extensionSessionKey: sessionKey,
312312
}),
313313
).catch(reject);

0 commit comments

Comments
 (0)