From f3dd19c0e8750a90123c7e3471a78587fccd26ce Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 21:47:59 +0000 Subject: [PATCH] Use user service to hydrate profile in test cgen-f12f39580e1b4b2daa8b4e035edae7f6 --- client/lib/onboarding.integration.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/lib/onboarding.integration.spec.ts b/client/lib/onboarding.integration.spec.ts index 489e59f7..dc9649e5 100644 --- a/client/lib/onboarding.integration.spec.ts +++ b/client/lib/onboarding.integration.spec.ts @@ -325,9 +325,10 @@ describe("onboarding passport flow", () => { bio: "Building awesome experiences", }); - const hydratedProfile = (await mockAuth.getUserProfile( - user.id as any, + const hydratedProfile = (await aethexUserService.getProfileById( + user.id, )) as AethexUserProfile; + expect(hydratedProfile).toBeTruthy(); expect(checkProfileComplete(hydratedProfile as any)).toBe(true); await mockAuth.linkIdentity({ provider: "github" });