Use mockAuth profile in integration test

cgen-63261292e53e40a688f78b61e24f4246
This commit is contained in:
Builder.io 2025-09-30 22:10:59 +00:00
parent d313d64dab
commit 2fb9c140d0

View file

@ -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;