docs: note vitest serial flag · openclaw/openclaw@d1a8e2b
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,6 +50,7 @@ Telegraph style. Root rules only. Read scoped `AGENTS.md` before subtree work.
|
50 | 50 | - Prod sweep: `pnpm check`; tests: `pnpm test`, `pnpm test:changed`, `pnpm test:serial`, `pnpm test:coverage`. |
51 | 51 | - Extension tests: `pnpm test:extensions`, `pnpm test extensions`, `pnpm test extensions/<id>`. |
52 | 52 | - Targeted tests: `pnpm test <path-or-filter> [vitest args...]`; never raw `vitest`. |
| 53 | +- Vitest flags only; no Jest flags like `--runInBand`. For serial runs use `pnpm test:serial` or `OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test ...`. |
53 | 54 | - Typecheck: `tsgo` lanes only (`pnpm tsgo*`, `pnpm check:test-types`); do not add `tsc --noEmit`, `typecheck`, `check:types`. |
54 | 55 | - Formatting: use `oxfmt`, not Prettier. Prefer `pnpm format:check` / `pnpm format`; for targeted files use `pnpm exec oxfmt --check --threads=1 <files...>` or `pnpm exec oxfmt --write --threads=1 <files...>`. |
55 | 56 | - Linting: use repo wrappers (`pnpm lint:*`, `scripts/run-oxlint.mjs`); do not invoke generic JS formatters/lints unless a repo script uses them. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。