Troubleshooting Supabase Test
Dan Lynch
Nov 14, 2025
Configure Environment Variables
You have two options for configuring your connection to the local Supabase stack:
Option 1: Using pgpm (Recommended)
basheval "$(pgpm env --supabase)"
This automatically configures all necessary environment variables for the local Supabase stack.
Option 2: Manual Configuration
Set your connection details manually:
bashexport PGHOST=localhost export PGPORT=54322 export PGUSER=supabase_admin export PGPASSWORD=postgres
These match the defaults from npx supabase start. The supabase-test package will automatically use these values.

