Files
orca/config/tsconfig.node.json
T
Neil c85d633837 test: fail unit tests that run a real agent CLI from PATH (#38961)
* test: stop unit tests from running the developer's real agent CLIs

A live relay test reached the host's real `claude --version` through the
inherited PATH. On a machine whose claude wrapper never exits, each run left
an orphaned loop behind (14 were found on one host, running for days).

- Add a unit-test setup guard that shadows agent CLI names on PATH with
  stand-ins that fail the test which ran them.
- Give the live relay test its own claude/codex stubs.
- Kill the whole process tree when the WSL guest's version probe times out.

* test: keep structured-session tests off the real codex CLI

These hosts get a scripted transport, but the at-rest `/` command read
spawns the resolved codex command directly, so on a machine with codex
installed each run started a real `codex app-server`. Point them at a
missing binary, as on CI.

* test: isolate agent discovery in session fixtures
2026-11-06 12:56:01 -08:00

47 lines
2.3 KiB
JSON

{
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
"include": [
"../electron.vite.config.*",
"./vitest.config.ts",
"./build-plugins/**/*",
"./scripts/test-runtime/environment/vitest-host-ports-setup.ts",
"./scripts/test-runtime/environment/vitest-caller-identity-env-setup.ts",
"./scripts/test-runtime/environment/vitest-inherited-git-env-setup.ts",
"./scripts/test-runtime/environment/vitest-real-agent-home-write-guard.ts",
"./scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts",
"./scripts/test-runtime/environment/vitest-bun-node-builtins.ts",
"./scripts/test-runtime/dom/vitest-dom-setup.ts",
"./scripts/test-runtime/dom/happy-dom-offscreen-canvas.ts",
"./scripts/test-runtime/dom/happy-dom-mutation-observer-retention.ts",
"./scripts/test-runtime/dom/happy-dom-animation-cancel.ts",
"./scripts/test-runtime/node-worker/vitest-node-runtime-pool.ts",
"./scripts/test-runtime/module-cache/vitest-module-cache-resolution-key.ts",
"../src/main/**/*",
"../src/cli/runtime/transport.ts",
"../src/cli/runtime/envelope-schema.ts",
"../src/cli/runtime/types.ts",
"../src/cli/runtime/runtime-access-denied.ts",
"../src/cli/runtime/runtime-pid-liveness.ts",
"../src/renderer/src/store/slices/worktrees/create/worktree-create-payload.ts",
"../src/renderer/src/components/native-chat/native-chat-resolution-receipt.ts",
"../src/renderer/src/components/native-chat/structured-agent-question-projection.ts",
"../src/renderer/src/components/native-chat/native-chat-subagent-delegation.ts",
"../src/renderer/src/components/native-chat/structured-agent-session-pending-sends.ts",
"../src/renderer/src/components/native-chat/structured-agent-session-queue-request.ts",
"../src/renderer/src/components/native-chat/native-chat-composer-primary-action.ts",
"../src/renderer/src/components/terminal-pane/legacy-relay-bridge-panes.ts",
"../src/preload/**/*",
"../src/shared/**/*",
"../src/packages/process-host/src/__fixtures__/**/*",
"../src/wsl-guest/**/*",
"../src/types/**/*"
],
"exclude": [
"../src/main/runtime/orchestration/terminal-authority/structured-sessions/structured-chat-coordinator-mail.test.ts"
],
"compilerOptions": {
"composite": true,
"types": ["electron-vite/node"]
}
}