From 1e274eabe6c17d5c787903630a53a339b3eafd1f Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 25 Dec 2025 18:46:39 +0900 Subject: [PATCH] fix(session-manager): include all constants exports in storage test mocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing mock exports (SESSION_LIST_DESCRIPTION, SESSION_READ_DESCRIPTION, SESSION_SEARCH_DESCRIPTION, SESSION_INFO_DESCRIPTION, SESSION_DELETE_DESCRIPTION, TOOL_NAME_PREFIX) to fix test failures when other test files import from constants. 🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode) --- src/tools/session-manager/storage.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tools/session-manager/storage.test.ts b/src/tools/session-manager/storage.test.ts index 65d21a5..7482d5f 100644 --- a/src/tools/session-manager/storage.test.ts +++ b/src/tools/session-manager/storage.test.ts @@ -15,6 +15,12 @@ mock.module("./constants", () => ({ PART_STORAGE: TEST_PART_STORAGE, TODO_DIR: TEST_TODO_DIR, TRANSCRIPT_DIR: TEST_TRANSCRIPT_DIR, + SESSION_LIST_DESCRIPTION: "test", + SESSION_READ_DESCRIPTION: "test", + SESSION_SEARCH_DESCRIPTION: "test", + SESSION_INFO_DESCRIPTION: "test", + SESSION_DELETE_DESCRIPTION: "test", + TOOL_NAME_PREFIX: "session_", })) const { getAllSessions, getMessageDir, sessionExists, readSessionMessages, readSessionTodos, getSessionInfo } = await import("./storage")