Skip to content

Commit 09ff843

Browse files
committed
fix: Fix for test command not working
1 parent fcd2647 commit 09ff843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connect/http-routes/handlers/test-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export function testHandler() {
3030

3131
session.additionalData.filePath = filePath;
3232

33-
return spawn(ShellUtils.getDefaultShell(), ['-c', `${ConnectOrchestrator.nodeBinary} ${ConnectOrchestrator.rootCommand} test`], {
33+
return spawn(ShellUtils.getDefaultShell(), ['-c', `${ConnectOrchestrator.nodeBinary} ${ConnectOrchestrator.rootCommand} test -p ${filePath}`], {
3434
name: 'xterm-color',
3535
cols: 80,
3636
rows: 30,
37-
cwd: filePath,
37+
cwd: process.env.HOME,
3838
env: process.env
3939
});
4040
}

0 commit comments

Comments
 (0)