spawn/packages/cli/src
A 6ee0bbed77
test: fix always-pass and try/catch anti-patterns in test suite (#1962)
- manifest-helpers.test.ts: 7 tests used try/catch where the catch block
  held all assertions. Since loadManifest() loads the local manifest.json
  when NODE_ENV is not "test", these tests passed silently with 0 assertions.
  Fix: set NODE_ENV=test + call _resetCacheForTesting() in beforeEach, and
  replace try/catch with expect(...).rejects.toThrow(). Also remove `any`
  type annotations on agentKeys/cloudKeys helper manifests.

- security-edge-cases.test.ts: "should use custom field name in error messages"
  used a manual guard (throw new Error in try) instead of expect().toThrow().
  Replace with 2 clean expect(() => ...).toThrow() calls.

- prompt-file-security.test.ts + security.test.ts: tests that checked multiple
  error message properties used try/catch with `catch (e: any)`. Replace with
  proper instanceof narrowing so the caught value is typed without `any`.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 16:16:04 -05:00
..
__tests__ test: fix always-pass and try/catch anti-patterns in test suite (#1962) 2026-02-26 16:16:04 -05:00
aws refactor: Remove dead code and stale references (#1950) 2026-02-26 08:36:08 -05:00
daytona fix: add missing timeout to Daytona runServer/runServerCapture (#1945) 2026-02-26 05:51:41 -05:00
digitalocean refactor: Remove dead code and stale references (#1950) 2026-02-26 08:36:08 -05:00
fly fix: replace non-null assertions with proper null guards in fly.ts and oauth.ts (#1946) 2026-02-26 05:49:48 -05:00
gcp refactor: Remove dead code and stale references (#1950) 2026-02-26 08:36:08 -05:00
hetzner refactor: Remove dead code and stale references (#1950) 2026-02-26 08:36:08 -05:00
local fix: eliminate keystroke loss during interactive agent sessions (#1939) 2026-02-26 00:08:38 -05:00
shared fix: add npm-global/bin to PATH for codex and kilocode installs (#1953) 2026-02-26 06:37:51 -08:00
sprite fix: eliminate keystroke loss during interactive agent sessions (#1939) 2026-02-26 00:08:38 -05:00
commands.ts fix(ux): show accurate message when history exists but no active servers (#1959) 2026-02-26 12:30:04 -05:00
flags.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
guidance-data.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
history.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
index.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
manifest.ts test: fix inline source copies — import real isValidManifest instead of stale replica (#1900) 2026-02-24 22:04:03 -08:00
picker.ts fix: replace @clack/prompts multiselect with /dev/tty picker for SSH keys (#1907) 2026-02-24 23:54:54 -08:00
security.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
unicode-detect.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
update-check.ts style: enforce separated type imports via biome (#1870) 2026-02-24 00:16:03 -08:00