8befc0d0de
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>
15 lines
473 B
TypeScript
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");
|
|
});
|