Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: make contributor test commands work from the repository root (#9692)
Adam Eivy8b13d6235da8
diff --git a/AGENTS.md b/AGENTS.mdindex de239b29ca..5a34402651 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -21,9 +21,9 @@ Non-obvious invocations only — everything else is in `package.json` scripts.npm run install:all # includes git submodule update --init --recursive# Root `npm test` runs both workspaces in sequence (server, then client). Run them-# per workspace to scope to one — both are Vitest, with different environments:-cd server && npm test # Vitest (node) — ALSO globs ../scripts, ../lib, ../autofixer-cd client && npm test # Vitest (happy-dom) — component/unit tests+# per workspace from the repository root to scope to one — both are Vitest:+npm test --prefix server # Vitest (node) — ALSO globs ../scripts, ../lib, ../autofixer+npm test --prefix client # Vitest (happy-dom) — component/unit tests# No NODE_ENV prefix needed: server/vitest.config.js FORCES NODE_ENV=test (#4554),# because PortOS runs under PM2 with NODE_ENV=development and a suite that# inherits it aims at the real Postgres.diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.mdindex e6822d115c..4957cf84a2 100644--- a/docs/CONTRIBUTING.md+++ b/docs/CONTRIBUTING.md@@ -133,19 +133,24 @@ PortOS/## Testing+Run these commands from the repository root:+```bash-# Run server tests-cd server && npm test+# Run server tests (Vitest, node environment)+npm test --prefix server-# Run client tests-cd client && npm test+# Run client tests (Vitest, happy-dom environment)+npm test --prefix client-# Provision and run the isolated DB-backed suites+# Provision and run the isolated DB-backed suites (portos_test only)npm run setup:db:testnpm run test:db+```-# Watch mode-cd server && npm run test:watch+For server watch mode, run this alternative from the repository root:++```bash+npm run test:watch --prefix server```Pull requests into `main` run the tests for affected feature directories, with