Files
kilocode/packages/opencode/test/storage
Yury Zialionka 2cb8ff4e46 test(storage): make the storage root injectable and fail closed on disk databases
Closes #12997. Part of #12986.

- Storage.layerFromDir(dir) roots the service at an explicit directory;
  the default layer still resolves Global.Path.data/storage lazily, so
  production composition (app-runtime) is unchanged.
- storage.test.ts injects a tmp root directly instead of remapping six
  FSUtil methods under Global.Path.data - the remap hack and its
  keep-in-sync burden are gone.
- Both test preloads now assert the resolved database path is
  ":memory:" after all preload imports. Previously a dropped env write
  or import-order regression silently pointed unit tests at the real
  ~/.local/share/kilo database (locking errors, Windows EBUSY teardown
  crashes); now the run fails immediately with a clear message.
2026-08-13 13:49:08 -06:00
..
2026-07-22 13:31:23 +02:00