docs: fix snapshot-filter syntax (no --, which vitest reads as a file filter)
`pnpm run test:snapshot -- -t <name>` silently runs ALL scenarios: pnpm forwards `--` literally and vitest treats everything after it as positional filename filters, so `-t` is ignored. The working form drops the separator — `pnpm run test:snapshot -t <name>` (and `-u` likewise).
This commit is contained in:
1 file changed
+4
-2
@@ -68,10 +68,12 @@ pnpm run test:snapshot # ACP snapshot tests (examples/*/tests/**/*.snapshot.ts)
|
||||
# boot the real acp-agent subprocess, replay a recorded
|
||||
# session JSONL, diff the normalized stdout + re-persisted
|
||||
# log against committed goldens. KEYLESS — runs in the
|
||||
# default gate. Filter one: `pnpm run test:snapshot -- -t <name>`.
|
||||
# default gate. Filter one by scenario name (no `--`, which
|
||||
# vitest treats as a positional file filter): `pnpm run
|
||||
# test:snapshot -t <name>`.
|
||||
pnpm run test:snapshot:record # re-record fixtures + goldens against the real
|
||||
# API (needs DEEPSEEK_API_KEY); accept-the-diff = re-record
|
||||
# (or `pnpm run test:snapshot -- -u` to refresh goldens only)
|
||||
# (or `pnpm run test:snapshot -u` to refresh goldens only)
|
||||
pnpm run typecheck # tsc -b tsconfig.build.json (declarations) + tsc -p
|
||||
# tsconfig.typecheck.json (tests/examples typecheck too)
|
||||
pnpm run lint # eslint .
|
||||
|
||||
Reference in New Issue
Block a user