diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 5a3e766e..5323e6b4 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -23,16 +23,8 @@ export interface AethexUserProfile extends UserProfile { const isNonEmptyString = (value: unknown): value is string => typeof value === "string" && value.trim().length > 0; -const isTestEnvironment = - typeof process !== "undefined" && - (process.env?.NODE_ENV === "test" || process.env?.VITEST); - const ensureSupabase = () => { if (!isSupabaseConfigured) { - if (isTestEnvironment) { - return; - } - throw new Error( "Supabase is not configured. Please set VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY.", );