spawn/cli/src
A 3c4d92cc9f
test: fix 25 test failures from mock.module global pollution and sandbox env (#1539)
Add autocomplete mock to 38 @clack/prompts mock.module declarations
that were missing it. Bun's mock.module is process-global, so when any
other test file's mock wins the race, p.autocomplete was undefined,
causing 17 cmd-interactive tests to fail non-deterministically.

Also guard sandbox-verification tests with describe.skipIf(!isSandboxed)
so the 8 meta-tests skip cleanly when running from repo root (where
bunfig.toml preload is not active) instead of failing.

Result: 6995 pass, 0 fail from cli/; 6978 pass, 0 fail, 17 skip from root.

Agent: test-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 19:36:20 -05:00
..
__tests__ test: fix 25 test failures from mock.module global pollution and sandbox env (#1539) 2026-02-20 19:36:20 -05:00
commands.ts fix: use destroy_server for sprite delete to support org users (#1538) 2026-02-20 19:34:58 -05:00
guidance-data.ts refactor: extract error guidance data structures into separate module (#1335) 2026-02-16 19:45:28 -08:00
history.ts fix: unbreak spawn delete and align error handling conventions (#1534) 2026-02-20 18:17:29 -05:00
index.ts fix: deduplicate isInteractiveTTY and remove dead OVH env wrapper (#1457) 2026-02-19 01:54:47 -05:00
manifest.ts fix: unbreak spawn delete and align error handling conventions (#1534) 2026-02-20 18:17:29 -05:00
picker.ts feat: add spawn pick command and interactive GCP project/zone/machine-type pickers (#1443) 2026-02-18 11:30:52 -05:00
security.ts fix: unbreak spawn delete and align error handling conventions (#1534) 2026-02-20 18:17:29 -05:00
unicode-detect.ts fix: Switch build target from node to bun to fix UTF-8 mojibake 2026-02-10 09:36:28 +00:00
update-check.ts fix: validate RAW_BASE URL in update-check to prevent future injection (#1533) 2026-02-20 12:52:02 -05:00