|
14 | 14 |
|
15 | 15 | A friendly playground for building and validating Supabase Row‑Level Security (RLS) using LaunchQL. It includes real‑world examples, migrations, and a comprehensive test suite you can run locally. |
16 | 16 |
|
| 17 | +Built with [supabase-test](https://www.npmjs.com/package/supabase-test) — a Supabase‑optimized version of `pgsql-test` for instant, isolated Postgres test databases with automatic rollbacks and Supabase defaults. See the package for install and features. |
| 18 | + |
17 | 19 | ## Features |
18 | 20 |
|
19 | | -- Policy‑driven examples for users, products, storage, realtime, and functions |
20 | | -- Supabase CLI local stack for zero‑setup Postgres |
21 | | -- Jest‑based tests that exercise RLS behavior end‑to‑end |
22 | | -- Modular schema packages you can reuse and extend |
| 21 | +- 🔐 RLS policy‑driven example tests with example product database using Supabase users |
| 22 | +- 🧪 Comprehensive end‑to‑end test suite against native Supabase schemas/tables (auth, storage, functions, realtime, and more) |
| 23 | +- 🐘 Supabase CLI local stack for zero‑setup Postgres |
| 24 | +- 🧪 Jest‑based tests that exercise RLS behavior end‑to‑end |
| 25 | +- 🚀 GitHub Actions workflows to run integration/e2e tests in CI/CD |
| 26 | +- 🧩 Modular schema packages you can reuse and extend |
23 | 27 |
|
24 | 28 | ## Quick start (tl;dr) |
25 | 29 |
|
@@ -56,7 +60,21 @@ for the expanded guide with screenshots and copy‑paste commands, see `docs/img |
56 | 60 | ## scripts you’ll use often |
57 | 61 |
|
58 | 62 | ```bash |
59 | | -# run the whole workspace test suite |
| 63 | +# rls-demo: run tests in watch mode |
| 64 | +cd packages/rls-demo |
| 65 | +pnpm test:watch |
| 66 | + |
| 67 | +# edit tests in packages/rls-demo/__tests__/... and Jest will re-run |
| 68 | +``` |
| 69 | + |
| 70 | +```bash |
| 71 | +# supabase: run tests in watch mode |
| 72 | +cd packages/supabase |
| 73 | +pnpm test:watch |
| 74 | +``` |
| 75 | + |
| 76 | +```bash |
| 77 | +# run all packages’ tests from the repo root |
60 | 78 | pnpm test |
61 | 79 | ``` |
62 | 80 |
|
|
0 commit comments