Supabase
Testing Commands
pgTAP & test helpers
6 commands
Commands
Run database tests
$ supabase test db
Run all pgTAP database tests
Debug function with breakpoint
$ supabase functions serve <name> --inspect-mode brk
Serve function with debugger breakpoint
Create new test file
$ supabase test new <name>
Create new pgTAP test file
Serve without JWT verification
$ supabase functions serve --no-verify-jwt
Serve functions without JWT verification
Reset and seed database
$ supabase db reset --seed
Reset database and run seed file
Serve with test env
$ supabase functions serve --env-file .env.test
Serve functions with test environment