test(terminal): send exit through the terminal session interface

This commit is contained in:
paseo-bot[bot]
2026-10-10 14:24:25 +02:00
parent 6eb61db7ea
commit 72f596a821
@@ -583,7 +583,7 @@ describe("createTerminal", () => {
}),
);
const state = await waitForState(session, (current) => getRowText(current, 0) === "FULLSCREEN");
session.write("q");
session.send({ type: "input", data: "q" });
const exited = await waitForState(session, (current) => getRowText(current, 1) === "PROMPT");
const expected = getLines(exited).join("\n").trim();
expect(expected).toBe("SHELL\nPROMPT");