// Global test setup for server-side Vitest suites.
// Per-track-vite-env-vars: keep these stable so controllers that read them work.
process.env.NODE_ENV = 'test';
process.env.DB_PATH = ':memory:';
process.env.JWT_SECRET = 'test-secret-do-not-use-in-production';
process.env.SUPABASE_KEY = ''; // offline mode for sync tests
process.env.SUPABASE_URL = '';
process.env.PORT = '0'; // 0 = let OS pick an ephemeral port
