cloudaxe-opencode/packages/opencode/test
Kit Langton 5acc917591 refactor(test/cli): simplify pass on tier-A + prebuild
Applies findings from the third simplify pass:

1. \`cliArgv\` is a module-level const, not a function — prebuiltCli is
   read once at module init and never mutated, so the per-spawn function
   allocation was pure overhead.

2. Help-snapshot failures surface via \`Effect.fail\` instead of \`throw\`,
   symmetric with the \`Effect.fail\` already inside the partition above.
   Keeps the failure typed in the Effect channel rather than as a defect.

3. \`prebuild-test-cli.ts\` skips the build when the binary is already
   newer than every file in src/ — saves the 2.8s rebuild cost on every
   subsequent invocation. Pass --force to bypass.

4. \`prebuild-test-cli.ts\` verifies the built binary is executable before
   symlinking — catches a silently-failed build leaving stale output
   instead of letting tests fail with confusing exec errors later.

Verified: 331/331 CLI tests pass; typecheck clean; skip-if-fresh + --force
behave as documented.
2026-05-19 11:36:15 -04:00
..
account
acp chore: generate 2026-05-14 23:34:42 +00:00
agent
auth
background
bus fix(bus): acquire PubSub subscription eagerly to close /event race (#27959) 2026-05-18 11:38:05 -04:00
cli refactor(test/cli): simplify pass on tier-A + prebuild 2026-05-19 11:36:15 -04:00
config test: migrate plugin config fixtures 2026-05-18 22:14:01 -04:00
control-plane Speed up targeted opencode tests 2026-05-18 16:18:29 +00:00
effect chore: generate 2026-05-18 18:42:55 +00:00
fake test(agent): isolate plugin agent regression (#26948) 2026-05-11 19:38:54 -04:00
file Stabilize watcher test readiness (#28194) 2026-05-18 12:51:46 -04:00
filesystem
fixture use keymap state for layer visibility (#26246) 2026-05-19 17:07:26 +02:00
fixtures/recordings/session chore: generate 2026-05-19 12:21:56 +00:00
format test(format): remove formatter check sleeps (#27407) 2026-05-13 21:02:34 -04:00
git
ide
image fix: image resizer wasm loading, reenable image resizing (#26805) 2026-05-13 23:06:07 -05:00
installation
lib refactor(test/cli): simplify pass on tier-A + prebuild 2026-05-19 11:36:15 -04:00
lsp fix(lsp): preserve instance ref for update events (#28016) 2026-05-17 16:37:00 +05:30
mcp test(lib): promote pollWithTimeout/awaitWithTimeout helpers (#27626) 2026-05-14 23:45:32 +00:00
patch effect(patch,tool): migrate patch/index and tool/read to AppFileSystem (#27155) 2026-05-13 20:32:19 -04:00
permission
plugin Speed up targeted opencode tests 2026-05-18 16:18:29 +00:00
project refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
provider Migrate provider lookup tests to instance fixtures 2026-05-18 18:01:53 +00:00
pty
question refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
reference refactor(repository): add cache service (#28184) 2026-05-18 21:25:38 +05:30
server fix(httpapi): preserve v2 openapi errors (#28298) 2026-05-19 11:42:01 +05:30
session chore: generate 2026-05-19 12:21:56 +00:00
share
shell
skill refactor(flags): migrate external skills flag (#27685) 2026-05-15 13:24:56 +05:30
snapshot
storage refactor(flags): migrate skip migrations flag (#27705) 2026-05-15 14:54:29 +05:30
sync refactor(sync): publish via EffectBridge.fork for codebase consistency (#28187) 2026-05-18 13:30:41 -04:00
tool chore: generate 2026-05-19 15:11:40 +00:00
util refactor(repository): clarify reference domain (#28182) 2026-05-18 21:04:44 +05:30
v2 Add Effect-native core event system (#27415) 2026-05-15 00:50:23 +00:00
AGENTS.md refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
EFFECT_TEST_MIGRATION.md refactor(instance): retire WithInstance adapter (#27782) 2026-05-16 01:30:07 +05:30
permission-task.test.ts
preload.ts