Files
cline/apps/cli/vitest.e2e.config.ts
Saoud Rizwan edaab58716 Add tuistory-based TUI e2e harness for the CLI (#12796)
* Add tuistory-based TUI e2e harness for the CLI

Evaluates https://github.com/remorses/tuistory as a Playwright-style
driver for the interactive TUI. Adds:

- tuistory devDependency in apps/cli
- test:e2e:tuistory script + vitest.tuistory.e2e.config.ts
- src/cli.tuistory.e2e.test.ts: ports the script(1)-based interactive
  smoke tests to reactive waitForText/screen-state assertions against a
  real PTY + Ghostty terminal emulator (5 tests, ~11s, no fixed sleeps)
- DEVELOPMENT.md docs for the vitest suite and the tuistory session CLI
  agents can use to manually drive the TUI headlessly

* Add tuistory agent skill (.cline/skills, symlinked to .claude/.agents)

Teaches coding agents to drive the Cline TUI headlessly via tuistory
sessions (launch with isolated env, reactive wait, snapshot/screenshot,
observe-act-observe loop) and to write launchTerminal()-based e2e tests,
closing the loop for cloud agents testing apps/cli.
2026-07-31 17:14:22 -07:00

15 lines
293 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.e2e.test.ts"],
exclude: [
"src/**/*.interactive.e2e.test.ts",
"src/**/*.tuistory.e2e.test.ts",
],
testTimeout: 60_000,
hookTimeout: 60_000,
},
});