Files
vue-tui/packages/runtime-tests/integration/pty/fixtures/ci-debug-after-exit.tsx
T
Yunfei He 4c2ebe8501 test: add CI rendering PTY fixtures + 4 tests
- ci.tsx: Static items + counter (non-interactive/CI behavior)
- ci-debug.tsx: debug mode rendering
- ci-debug-after-exit.tsx: debug mode exit + DONE output

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

12 lines
318 B
TypeScript

import process from "node:process";
import { createApp, Text } from "@vue-tui/runtime";
import { defineComponent } from "vue";
const App = defineComponent(() => () => <Text>Hello</Text>);
const app = createApp(App);
app.mount({ debug: true });
app.unmount();
await app.waitUntilExit();
process.stdout.write("DONE");