import { describe, expect, it, vi } from 'vitest';

describe('supabaseClient', () => {
    it('creates a client when environment variables are present', async () => {
        vi.resetModules();
        vi.stubEnv('VITE_SUPABASE_URL', 'https://example.supabase.co');
        vi.stubEnv('VITE_SUPABASE_ANON_KEY', 'anon-key');

        const mod = await import('./supabaseClient');
        expect(mod.supabase).toBeTruthy();
    });
});
