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.

Quick Setup with Automatic Rollbacks

Get started with supabase-test in seconds. Each test gets its own isolated database with automatic transaction rollbacks, ensuring clean state between tests.

Supabase Auth and RLS Testing

Test Supabase Auth and Row-Level Security policies by simulating different user roles and JWT claims. Perfect for testing authentication and authorization logic in your Supabase app.

Flexible Seeding with Supabase Migrations

Compose multiple seeding strategies including SQL files, programmatic functions, JSON data, and Supabase migrations for comprehensive test setup.