CLI: rename heartbeat tmux helper and log file path

This commit is contained in:
Peter Steinberger
2025-11-26 18:00:23 +01:00
parent deded848ee
commit 7e5b3958cc
7 changed files with 44 additions and 5 deletions

View File

@@ -116,4 +116,14 @@ describe("cli program", () => {
expect(runtime.exit).not.toHaveBeenCalled();
runtime.exit = originalExit;
});
it("runs relay heartbeat tmux helper", async () => {
const program = buildProgram();
await program.parseAsync(["relay:heartbeat:tmux"], { from: "user" });
const shouldAttach = Boolean(process.stdout.isTTY);
expect(spawnRelayTmux).toHaveBeenCalledWith(
"pnpm warelay relay --verbose --heartbeat-now",
shouldAttach,
);
});
});