From 34c221b07fadd11e9ae7de43563fbc8531b644af Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 5 Aug 2026 03:10:29 +0300 Subject: [PATCH] fix(test): restore the issue-2039 suite by completing its session-actions mock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The suite mocks `session-actions` by listing its exports one by one, and had fallen behind `unarchiveSession`/`unarchiveSessions`. `session-ui-store` imports both, so the file threw on import and ran zero tests — the draft auto-accept and canonical-worktree-directory guarantees it covers were unprotected, and the report looked almost like silence rather than a failure. --- packages/ui/src/sync/__tests__/issue-2039.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/src/sync/__tests__/issue-2039.test.ts b/packages/ui/src/sync/__tests__/issue-2039.test.ts index ef9f5439..c9cef4af 100644 --- a/packages/ui/src/sync/__tests__/issue-2039.test.ts +++ b/packages/ui/src/sync/__tests__/issue-2039.test.ts @@ -251,6 +251,8 @@ mock.module("../session-actions", () => ({ deleteSessions: mock(async () => ({ deletedIds: [], failedIds: [] })), archiveSession: mock(async () => true), archiveSessions: mock(async () => ({ archivedIds: [], failedIds: [] })), + unarchiveSession: mock(async () => true), + unarchiveSessions: mock(async () => ({ restoredIds: [], failedIds: [] })), updateSessionTitle: mock(async () => undefined), shareSession: mock(async () => undefined), unshareSession: mock(async () => undefined),