From 06ede6fdedbaab67661375e50f38ef3a4d65bc2a Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Fri, 29 May 2026 16:31:39 +0800 Subject: [PATCH] docs(agents): correct the testing guidance to match the shipped CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The concurrency notes described `sequence.concurrent: true`, but that was rolled back — it starved timing-sensitive render tests on the 4-core CI runner. Rewrite to reflect what actually ships: - File-level parallelism (fileParallelism: true), tests within a file serial; explain WHY in-file concurrency is deliberately avoided (the local-vs-CI core-count trap) and that PTY needs pool: forks. - *.sequential.test.* files group process-global-state tests (fake timers, listener/yoga-node counts). - New rule: tests must not implicitly depend on host env. CI=true flips interactive mode off, so both vitest configs force CI:false; inject env behavior explicitly and reproduce CI with `CI=true vp run ci` on a fresh checkout. - FORCE_COLOR must also be set in spawned child envs, not just vitest config. --- AGENTS.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6df0c6e..f22dfac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,12 +6,11 @@ - Vue SFCs must use `