fix: resolve pre-existing type errors in test files blocking staging build

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Arthur Belleville 2026-04-11 16:25:37 +02:00
parent 9a56777b8b
commit bb9550dd39
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -95,7 +95,7 @@ describe("SubscriptionCard", () => {
it("shows Founder badge and unlimited info for annual plan", () => {
const founderOrg = { ...baseOrg, active_subscription_plan: "annual" as const };
const founderUser = { ...baseUser, plan: "annual" as const };
const founderUser = { ...baseUser, plan: "standard" as const };
renderCard(founderUser, founderOrg);
expect(screen.getByText("Founder")).toBeInTheDocument();
expect(screen.getByText(/Plan Founder \(annuel\)/)).toBeInTheDocument();

View file

@ -58,7 +58,7 @@ function renderWithUser(user: User | null, orgData: ReturnType<typeof useOrganiz
data: orgData,
isLoading: false,
error: null,
} as ReturnType<typeof useOrganization>);
} as unknown as ReturnType<typeof useOrganization>);
return render(
<QueryClientProvider client={queryClient}>
@ -164,7 +164,7 @@ describe("useMaybeUpgradeBlock", () => {
data: compliantOrgData,
isLoading: false,
error: null,
} as ReturnType<typeof useOrganization>);
} as unknown as ReturnType<typeof useOrganization>);
render(
<QueryClientProvider client={queryClient}>