From 194b5c72116a486864fe9a86a866feb82e8f212e Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:46:10 -0700 Subject: [PATCH] fix(test): complete the BrowserWorkspace fixture in the ported palette test The fixture came over from #8966 as a bare { id }, which vitest accepts but tsconfig.tc.web (the config CI typechecks tests with) rejects: BrowserWorkspace has gained required fields since that PR was opened. Co-authored-by: Rod Boev Co-authored-by: Orca --- .../src/components/WorktreeJumpPalette.test.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/WorktreeJumpPalette.test.tsx b/src/renderer/src/components/WorktreeJumpPalette.test.tsx index 33ed088d586..7d84be81be1 100644 --- a/src/renderer/src/components/WorktreeJumpPalette.test.tsx +++ b/src/renderer/src/components/WorktreeJumpPalette.test.tsx @@ -250,7 +250,20 @@ describe('WorktreeJumpPalette', () => { worktreesByRepo: { 'repo-1': [defaultBranch, feature, folderMain] }, showSleepingWorkspaces: false, browserTabsByWorktree: { - feature: [{ id: 'browser-tab-1' }] + feature: [ + { + id: 'browser-tab-1', + worktreeId: 'feature', + url: 'https://example.com', + title: 'example.com', + loading: false, + faviconUrl: null, + canGoBack: false, + canGoForward: false, + loadError: null, + createdAt: 0 + } + ] } })