Files
vue-tui/packages/runtime-tests/integration/pty/console.test.ts
T
Yunfei He 8befc0d0de fix: rewrite PTY tests to use node-pty directly, upgrade to 1.2.0-beta.13
node-pty 1.1.0's POSIX_SPAWN_CLOEXEC_DEFAULT flag fails on macOS 26 (Tahoe).
Beta.13 fixes this. Rewrote helpers to match Ink's node-pty architecture,
removed python pty-spawn and force-tty workarounds, added check-pty guard
that skips all 82 tests when node-pty is unavailable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 01:08:25 +08:00

15 lines
473 B
TypeScript

import { test as it, expect } from "vite-plus/test";
import { run } from "./helpers/run.ts";
it("console.log doesn't corrupt output", async () => {
const output = await run("console");
expect(output).toContain("First log");
expect(output).toContain("Second log");
});
it("useStdout.write in real terminal", async () => {
const output = await run("use-stdout");
expect(output).toContain("Hello from vue-tui to stdout");
expect(output).toContain("exited");
});