Skip to content

Commit e0629a6

Browse files
committed
test(server): pin the inherited Windows key in the home expansion test
Signed-off-by: Yordis Prieto <[email protected]>
1 parent 00596b3 commit e0629a6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/server/src/terminal/Manager.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,11 +1948,13 @@ it.layer(
19481948
Effect.gen(function* () {
19491949
const path = yield* Path.Path;
19501950
const home = yield* HostProcess.HomeDirectory;
1951-
const { manager, ptyAdapter } = yield* createManager(5);
1951+
const { manager, ptyAdapter } = yield* createManager(5, {
1952+
env: { GROK_HOME: "C:\\inherited-grok" },
1953+
});
19521954

19531955
yield* manager.open(openInput({ env: { grok_home: "~/.grok-work" } }));
19541956

1955-
expect(ptyAdapter.spawnInputs[0]?.env.grok_home).toBe(path.join(home, ".grok-work"));
1957+
expect(ptyAdapter.spawnInputs[0]?.env.GROK_HOME).toBe(path.join(home, ".grok-work"));
19561958
}).pipe(Effect.provide(layerWithHostPlatform("win32"))),
19571959
);
19581960

0 commit comments

Comments
 (0)