Show HN: Supabase-Test β Fast Isolated Postgres DBs for Testing Supabase RLS
30 points| pyramation | 3 months ago |npmjs.com
Features: - Instant isolated Postgres DBs per test - Automatic rollback after each test - RLS-native testing with `.setContext()` for auth simulation - Flexible seeding (SQL, CSV, JSON, JS) - Works with Jest, Mocha, and any async test runner - CI-friendly (runs cleanly in GitHub Actions)
We also published example projects and a free set of tutorials: https://launchql.com/learn/supabase
Package: https://www.npmjs.com/package/supabase-test
Source + full test suite: https://github.com/launchql/supabase-test-suite
Happy to answer questions and get feedback, cheers :)
John23832|3 months ago
dang|3 months ago
[see https://news.ycombinator.com/item?id=45988611 for explanation]
adebelov|3 months ago
kevinle_clad|3 months ago
richardfeynman|3 months ago
michaelnemke|3 months ago