From 79fe42ccc48df243b003a2e419358c5953b82cd0 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Tue, 28 Apr 2026 17:50:30 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@3f780bb27da18c464f1393f7e78b5b73216a3d7c --- .openclaw-sync/source.json | 4 ++-- docs/reference/test.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 69530d0cb..39260fb6f 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "6d323ee73640afdf02ed9fa3aded13da23359b98", - "syncedAt": "2026-04-28T17:25:38.696Z" + "sha": "3f780bb27da18c464f1393f7e78b5b73216a3d7c", + "syncedAt": "2026-04-28T17:48:54.268Z" } diff --git a/docs/reference/test.md b/docs/reference/test.md index a66bb141c..07eb93020 100644 --- a/docs/reference/test.md +++ b/docs/reference/test.md @@ -16,7 +16,7 @@ title: "Tests" - `pnpm check:changed`: runs the smart changed check gate for the diff against `origin/main`. It runs typecheck, lint, and guard commands for the affected architectural lanes, but does not run Vitest tests. Use `pnpm test:changed` or explicit `pnpm test ` for test proof. - `pnpm test`: routes explicit file/directory targets through scoped Vitest lanes. Untargeted runs use fixed shard groups and expand to leaf configs for local parallel execution; the extension group always expands to the per-extension shard configs instead of one giant root-project process. - Test wrapper runs end with a short `[test] passed|failed|skipped ... in ...` summary. Vitest's own duration line stays the per-shard detail. -- Shared OpenClaw test state: use `src/test-utils/openclaw-test-state.ts` from Vitest when a test needs an isolated `HOME`, `OPENCLAW_STATE_DIR`, `OPENCLAW_CONFIG_PATH`, config fixture, workspace, agent dir, or auth-profile store. Docker/Bash E2E lanes can use `scripts/lib/openclaw-test-state.mjs shell --label --scenario ` for an in-container shell snippet, or `node scripts/lib/openclaw-test-state.mjs -- create --label --scenario --env-file --json` for a sourceable host env file. The `--` before `create` keeps newer Node runtimes from treating `--env-file` as a Node flag. +- Shared OpenClaw test state: use `src/test-utils/openclaw-test-state.ts` from Vitest when a test needs an isolated `HOME`, `OPENCLAW_STATE_DIR`, `OPENCLAW_CONFIG_PATH`, config fixture, workspace, agent dir, or auth-profile store. Docker/Bash E2E lanes that source `scripts/lib/docker-e2e-image.sh` can pass `docker_e2e_test_state_shell_b64