deepseek-harness/packages/code-runtime/code-runtime-worker/tests
Tianyi Cui c4647a8609 test: adopt execa for hand-rolled subprocess plumbing, parseArgs for llm-mock-server CLI, vi.waitFor for poll loops
Implements the execa Agent Note's four sub-changes:
- execa (root devDep + loader-smoke dep) replaces the hand-rolled
  spawn-collect-timeout choreography in loader-smoke, apps/cli and
  cli-demo/acp-demo built-bin e2e, lsp-local and code-runtime-worker
  built-lib e2e, the tui pty-harness outer collector, the jsonrpc
  keyless smoke, and crash-recovery's child spawn. Genuinely custom
  parts stay custom: cli-demo's interrupt-on-marker, jsonrpc's
  line-predicate protocol driving, crash-recovery's SIGKILL-at-failpoint.
  The two loader-smoke /* v8 ignore */ OS-error branches are gone.
- llm-mock-server CLI tokenizes via node:util parseArgs; numeric
  coercion/bounds/cross-option constraints stay manual; pinned
  error-message tests updated to the parseArgs texts.
- both loadRootEnv copies in apps/web/tests are deleted: the owning
  vitest configs (web unconditionally, snapshot in record mode)
  already load the repo-root .env before these files run.
- the four poll loops (acp-snapshot harness waits + crash-recovery
  waitForFile) ride vi.waitFor with explicit {interval, timeout}.
2026-07-26 22:29:41 +08:00
..
bootstrap.spec.ts fix(code-mode): generalize failures and bound diagnostics 2026-07-23 01:32:17 +08:00
built-lib.e2e.ts test: adopt execa for hand-rolled subprocess plumbing, parseArgs for llm-mock-server CLI, vi.waitFor for poll loops 2026-07-26 22:29:41 +08:00
output-json.spec.ts test(code-runtime): type mutated array predicate 2026-07-23 03:11:53 +08:00
runtime.spec.ts fix(code-runtime): capture worker error intrinsic 2026-07-23 03:51:15 +08:00
source-worker.compat.spec.ts fix(code-runtime): flatten worker JSON transport 2026-07-22 19:09:27 +08:00
worker-json.spec.ts test(code-runtime): cover malformed key markers 2026-07-23 03:09:13 +08:00