From 2fb9c140d045ce4f31c56e47a9e5186c3d404e75 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 30 Sep 2025 22:10:59 +0000 Subject: [PATCH] Use mockAuth profile in integration test cgen-63261292e53e40a688f78b61e24f4246 --- client/lib/onboarding.integration.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lib/onboarding.integration.spec.ts b/client/lib/onboarding.integration.spec.ts index 5892a154..512f87a3 100644 --- a/client/lib/onboarding.integration.spec.ts +++ b/client/lib/onboarding.integration.spec.ts @@ -135,8 +135,8 @@ describe("onboarding passport flow", () => { bio: "Building awesome experiences", }); - const hydratedProfile = await aethexUserService.getCurrentUser(); - expect(checkProfileComplete(hydratedProfile)).toBe(true); + const hydratedProfile = (await mockAuth.getUserProfile(user.id as any)) as AethexUserProfile; + expect(checkProfileComplete(hydratedProfile as any)).toBe(true); await mockAuth.linkIdentity({ provider: "github" }); const refreshedUser = (await mockAuth.getUser()).data.user;