fix: resolve session-manager storage test mock pollution (pre-existing CI failure)

This commit is contained in:
YeonGyu-Kim 2026-02-16 18:29:30 +09:00
parent 66e66e5d73
commit 65bca83282

View File

@ -31,6 +31,13 @@ mock.module("../../shared/opencode-storage-detection", () => ({
resetSqliteBackendCache: () => {},
}))
mock.module("../../shared/opencode-storage-paths", () => ({
OPENCODE_STORAGE: TEST_DIR,
MESSAGE_STORAGE: TEST_MESSAGE_STORAGE,
PART_STORAGE: TEST_PART_STORAGE,
SESSION_STORAGE: TEST_SESSION_STORAGE,
}))
const { getAllSessions, getMessageDir, sessionExists, readSessionMessages, readSessionTodos, getSessionInfo } =
await import("./storage")