deepseek-harness/packages/lsp/lsp-local/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
..
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
connection.spec.ts fix(lsp): make transport recovery ownership-safe 2026-07-22 15:56:29 +08:00
fixture-server.ts fix(windows): restore LSP and TUI coverage 2026-07-22 14:23:44 +08:00
framing.spec.ts fix(lsp): harden local provider lifecycle 2026-07-16 16:42:32 +08:00
host.spec.ts test(windows): make coverage fixtures portable 2026-07-22 13:10:48 +08:00
instance.spec.ts fix(lsp): make transport recovery ownership-safe 2026-07-22 15:56:29 +08:00
lifecycle.spec.ts Merge origin/master into worktree/ci-under-minute 2026-07-22 17:15:46 +08:00
provider.spec.ts test(windows): use native PATH delimiter 2026-07-22 14:42:11 +08:00
translate.spec.ts fix(lsp): align operations and harden lifecycle 2026-07-21 13:29:40 +08:00
typescript-server.e2e.ts fix(lsp): align operations and harden lifecycle 2026-07-21 13:29:40 +08:00