Skip to content

Commit d789e5b

Browse files
committed
test(web): isolate search from auth lifecycle
1 parent da41312 commit d789e5b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/web/src/components/search/SearchBar.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ vi.mock("@openmapx/core", async (importOriginal) => {
2626
usePresetSuggest: () => ({ data: undefined }),
2727
useChipTranslations: () => ({ data: {} }),
2828
useLabeledPlaces: () => ({ data: undefined }),
29+
// The mobile empty state only needs a signed-out session. Keep the real
30+
// Better Auth client (and its delayed browser lifecycle) out of this test.
31+
useSession: () => ({ data: null }),
2932
};
3033
});
3134

0 commit comments

Comments
 (0)