Skip to content

Commit 1933a14

Browse files
committed
test(web): preserve session exports in preview mock
1 parent c4c8260 commit 1933a14

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/preview/PreviewView.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ vi.mock("~/browserHistoryStore", () => ({
5656
useThreadRecentHistory: () => EMPTY_HISTORY,
5757
}));
5858

59-
vi.mock("~/state/session", () => ({
59+
vi.mock("~/state/session", async (importOriginal) => ({
60+
...(await importOriginal<typeof import("~/state/session")>()),
6061
readPreparedConnection: mocks.readPreparedConnection,
6162
}));
6263

0 commit comments

Comments
 (0)