cloudaxe-opencode/packages/opencode/test/storage
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
..
db-effect.test.ts test(opencode): pin lifecycle invariants for DatabaseEffect + managed-runtime 2026-05-02 23:23:32 -04:00
db.test.ts refactor: remove module barrels (#24554) 2026-04-27 14:33:33 -04:00
json-migration.test.ts refactor: remove module barrels (#24554) 2026-04-27 14:33:33 -04:00
storage.test.ts refactor: remove module barrels (#24554) 2026-04-27 14:33:33 -04:00