[HN Gopher] Show HN: Supabase-Test - Fast Isolated Postgres DBs ...
___________________________________________________________________
Show HN: Supabase-Test - Fast Isolated Postgres DBs for Testing
Supabase RLS
Hi HN -- we've built a testing framework for Supabase that spins up
fast, isolated Postgres databases for each test case. It's designed
to make RLS policies easy to validate with real database state,
without global test fixtures or mock auth. 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 :)
Author : pyramation
Score : 24 points
Date : 2025-11-20 18:39 UTC (4 days ago)
(HTM) web link (www.npmjs.com)
(TXT) w3m dump (www.npmjs.com)
| dang wrote:
| [under-the-rug stub]
|
| [see https://news.ycombinator.com/item?id=45988611 for
| explanation]
| richardfeynman wrote:
| Great tutorials.
| pyramation wrote:
| thank you! Appreciate that.
|
| Always want to make the glide path and ensure folks can run
| the software replicably on their machines!
|
| happy to help if you run into any issues :)
| adebelov wrote:
| Super cool!!! Congrats
| pyramation wrote:
| thank you! much appreciated ;) hope it helps you guys ship
| secure supabase projects!
| michaelnemke wrote:
| Love this
| pyramation wrote:
| appreciate it! let us know if you and your team have any
| feedback, cheers!!!
| kevinle_clad wrote:
| Love this, great stuff
| pyramation wrote:
| thank you! let us know if you need help setting it up!
___________________________________________________________________
(page generated 2025-11-24 23:01 UTC)