From 79f72fccecd1465930516fffbb53bfbd5b430da3 Mon Sep 17 00:00:00 2001 From: Thomas Mustier <6326440+tmustier@users.noreply.github.com> Date: Fri, 7 Aug 2026 06:23:06 +0100 Subject: [PATCH] docs(tui): Clarify TUI test runner and remove stale Vitest config (#7732) * docs[tui]: clarify Node test runner guidance * docs[tui]: preserve test guidance wording * docs[tui]: keep runner guidance focused --- AGENTS.md | 4 +++- packages/tui/vitest.config.ts | 7 ------- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 packages/tui/vitest.config.ts diff --git a/AGENTS.md b/AGENTS.md index 74b628083..fb6446da5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,7 +27,9 @@ - After code changes (not docs): `npm run check` (full output, no tail). Fix all errors, warnings, and infos before committing. Does not run tests. - Never run `npm run build` or `npm test` unless requested by the user. -- Never run the full vitest suite directly: it includes e2e tests that activate when endpoint/auth env vars are present. For all non-e2e tests, run `./test.sh` from the repo root. Otherwise run specific tests from the package root: `node ../../node_modules/vitest/dist/cli.js --run test/specific.test.ts`. +- Never run the full vitest suite directly: it includes e2e tests that activate when endpoint/auth env vars are present. For all non-e2e tests, run `./test.sh` from the repo root. Otherwise run specific tests from the package root: + - Vitest: `node "$(git rev-parse --show-toplevel)/node_modules/vitest/dist/cli.js" --run test/specific.test.ts` + - `packages/tui` (`node:test`): `node --test test/specific.test.ts` - If you create or modify a test file, run it and iterate on test or implementation until it passes. - For `packages/coding-agent/test/suite/`, use `test/suite/harness.ts` + the faux provider. No real provider APIs, keys, or paid tokens. - Put issue-specific regressions under `packages/coding-agent/test/suite/regressions/` named `-.test.ts`. diff --git a/packages/tui/vitest.config.ts b/packages/tui/vitest.config.ts deleted file mode 100644 index a90c176d9..000000000 --- a/packages/tui/vitest.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defineConfig } from "vitest/config"; - -export default defineConfig({ - test: { - include: ["test/wrap-ansi.test.ts"], - }, -});