cloudaxe-opencode/packages/opencode/test/effect
Kit Langton f948a1e3b0 test(opencode): pin lifecycle invariants for DatabaseEffect + managed-runtime
Adds regression tests for the two non-obvious invariants enforced by the
Effect-Drizzle integration:

- packages/opencode/test/storage/db-effect.test.ts pins that
  DatabaseEffect.layer rebuilds a fresh handle after Database.close + dispose,
  and demonstrates the shared-memoMap poisoning that resetDatabase prevents
  by disposing every DB-consuming runtime before closing the SQLite handle.

- packages/opencode/test/effect/managed-runtime.test.ts pins makeManagedRuntime
  dispose semantics and the lazy.resetIf compare-and-reset guard so a
  rebuilt instance is never clobbered by a stale dispose.
2026-05-02 23:23:32 -04:00
..
app-runtime-logger.test.ts test: use Effect test helper for app runtime logger (#25049) 2026-04-30 12:52:29 -04:00
config-service.test.ts test: cover ConfigService helper (#25042) 2026-04-30 02:41:59 +00:00
instance-state.test.ts fix(instance): run bootstrap from instance store (#25475) 2026-05-02 19:33:38 -04:00
managed-runtime.test.ts test(opencode): pin lifecycle invariants for DatabaseEffect + managed-runtime 2026-05-02 23:23:32 -04:00
run-service.test.ts Migrate test inits from Promise to Effect (#25377) 2026-05-02 09:07:59 -04:00
runner.test.ts test(effect): stabilize runner active shell check (#25203) 2026-04-30 21:36:19 -04:00