supabase-test

Instant, Isolated Testing for Supabase

Get instant, isolated PostgreSQL databases optimized for Supabase testing with automatic transaction rollbacks, RLS policy testing, and Supabase Auth simulation. Write real SQL. Test real RLS. Stay fast.

Supabase-Optimized

Pre-configured for Supabase Auth, Storage, and RLS patterns

Per-test Rollback

Every test runs in its own transaction or savepoint

Auth Simulation

Test Supabase Auth and RLS policies with setContext()

supabase-test Features

Optimize your Supabase testing workflow

Supabase-Ready Test Databases

Get fresh PostgreSQL databases pre-configured with Supabase schemas, auth helpers, and RLS patterns for zero-friction testing.

Automatic Transaction Rollbacks

Every test runs in its own transaction or savepoint, ensuring complete isolation and automatic cleanup.

Supabase Auth Testing

Simulate Supabase Auth with realistic JWT claims and test RLS policies exactly as they run in production.

Flexible Seeding System

Run .sql files, programmatic seeds, CSV/JSON fixtures, or even load your Supabase migrations.

Test Framework Compatible

Works seamlessly with Jest, Mocha, Vitest, and any async test runner for maximum flexibility.

Auto Teardown

No residue, no reboots, just clean exits with automatic cleanup of test databases.