sandcastle: stub config server for prober tests and e2e (#9) #25

Merged
matou-build-agent merged 1 commit from agent/issue-9 into main 2026-08-28 18:06:22 +00:00

Implements plan Task 5 (#9). Adds tools/stub-config-server.ts + test, root vitest.config.ts, root vitest/@coa/schema devDeps and test script.

Acceptance: pnpm exec vitest run tools (2 tests) green; make stub-config + curl localhost:3904/config parses with ClientConfigSchema; pnpm -r typecheck && pnpm test exit 0.

🤖 Generated with Claude Code

Implements plan Task 5 (#9). Adds `tools/stub-config-server.ts` + test, root `vitest.config.ts`, root vitest/@coa/schema devDeps and `test` script. Acceptance: `pnpm exec vitest run tools` (2 tests) green; `make stub-config` + `curl localhost:3904/config` parses with `ClientConfigSchema`; `pnpm -r typecheck && pnpm test` exit 0. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: stub config server for prober tests and e2e (#9)
All checks were successful
ci / seam (pull_request) Successful in 27s
2dfd4d7e5e
Plan Task 5. Adds tools/stub-config-server.ts:
startStubConfigServer({port,config,fail}) → {url, close()}. GET /config
serves a ClientConfig whose KERIA/schema/witness URLs point back at the
stub and whose anysync coordinator address is the stub's own host:port
(127.0.0.1:1 when fail has 'anysync'). HTTP probe paths answer 200, or 500
for keys named in `fail`. CLI: tsx tools/stub-config-server.ts on
STUB_CONFIG_PORT (default 3904).

Wires a root vitest.config.ts (include tools/**/*.test.ts), root
devDependencies vitest + @coa/schema (workspace:*), and root test script
`vitest run && pnpm -r test`. STATUS.md updated (header + log + what-exists).

Files: tools/stub-config-server.ts, tools/stub-config-server.test.ts,
vitest.config.ts, package.json, pnpm-lock.yaml, STATUS.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!25
No description provided.