Use user service to hydrate profile in test

cgen-f12f39580e1b4b2daa8b4e035edae7f6
This commit is contained in:
Builder.io 2025-10-04 21:47:59 +00:00
parent 869321b9e1
commit f3dd19c0e8

View file

@ -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" });