Skip to content

Commit 8d9a857

Browse files
test(web): reopen-shortcut catalog fixture carries a connection target
The app now reads the primary environment while painting themes, and the fixture's bare {} entry threw on entry.target._tag inside the mock factory. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent de4a6fd commit 8d9a857

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/ReopenClosedViewShortcut.browser.test.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ vi.mock(import("../connection/catalog"), async (original) => {
4747
...actual,
4848
environmentCatalog: {
4949
...actual.environmentCatalog,
50-
catalogValueAtom: Atom.make({ isReady: true, entries: new Map([["remote", {}]]) }) as never,
50+
catalogValueAtom: Atom.make({
51+
isReady: true,
52+
entries: new Map([["remote", { target: { _tag: "DirectConnectionTarget" } }]]),
53+
}) as never,
5154
},
5255
};
5356
});

0 commit comments

Comments
 (0)