Skip to content

Commit 32dcf6f

Browse files
committed
readme
1 parent 4905e83 commit 32dcf6f

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414

1515
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.
1616

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+
1719
## Features
1820

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
2327

2428
## Quick start (tl;dr)
2529

@@ -56,7 +60,21 @@ for the expanded guide with screenshots and copy‑paste commands, see `docs/img
5660
## scripts you’ll use often
5761

5862
```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
6078
pnpm test
6179
```
6280

0 commit comments

Comments
 (0)