authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-06-09 13:38:20-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-06-09 20:38:20+00:00
loga3422a9bb51d73724b9b665ae0ef1fb756f753d1
treeef52e99378d6866d790c8d92a3cc191681456d4d
parent22f9f3058b7e2da973fec5b65597a778390c4790
signature Signed by PGP key B5690EEEBB952194

Fix Clerk browser test mock (#3013)

Co-authored-by: codex <codex@users.noreply.github.com>

1 files changed, 4 insertions(+), 0 deletions(-)

apps/web/src/components/settings/SettingsPanels.browser.tsx+4
......@@ -149,12 +149,16 @@ const authAccessHarness = vi.hoisted(() => {
149149
150150const mockConnectDesktopSshEnvironment = vi.hoisted(() => vi.fn());
151151const mockGetClerkToken = vi.hoisted(() => vi.fn(async () => null));
152const mockOpenClerkWaitlist = vi.hoisted(() => vi.fn());
152153
153154vi.mock("@clerk/react", () => ({
154155 useAuth: () => ({
155156 getToken: mockGetClerkToken,
156157 isSignedIn: false,
157158 }),
159 useClerk: () => ({
160 openWaitlist: mockOpenClerkWaitlist,
161 }),
158162}));
159163
160164vi.mock("../../environments/runtime", () => {