spawn/packages/cli/src
A 0260b605ce
test: fix always-pass and err:any anti-patterns in manifest tests (#1967)
Two tests used try/catch with assertions in both branches, meaning they
passed whether loadManifest succeeded or threw. The comment claimed local
manifest fallback could be used, but tryLoadLocalManifest() returns null
in test environments (NODE_ENV=test), so the function always throws here.

Replace with expect().rejects.toThrow() which fails if no error is thrown
and eliminates the banned `err: any` type assertion.

Agent: test-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-26 16:31:32 -08:00
..
__tests__ test: fix always-pass and err:any anti-patterns in manifest tests (#1967) 2026-02-26 16:31:32 -08:00
aws refactor: Remove dead code and stale references (#1950) 2026-02-26 08:36:08 -05:00
daytona refactor: Remove dead code and consolidate duplicate parseJson helpers (#1963) 2026-02-26 16:17:47 -05:00
digitalocean refactor: Remove dead code and consolidate duplicate parseJson helpers (#1963) 2026-02-26 16:17:47 -05:00
fly fix(security): prevent command injection in fly.ts uploadFile (#1964) 2026-02-26 17:13:23 -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 consolidate duplicate parseJson helpers (#1963) 2026-02-26 16:17:47 -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 openclaw gateway on non-Fly clouds (#1969) 2026-02-26 18:46:55 -05:00
sprite fix: eliminate keystroke loss during interactive agent sessions (#1939) 2026-02-26 00:08:38 -05:00
commands.ts fix(ux): replace non-existent --non-interactive flag in list message (#1966) 2026-02-26 18:45:19 -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 refactor: Remove dead code and consolidate duplicate parseJson helpers (#1963) 2026-02-26 16:17:47 -05: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