Testing. Unit, integration, RLS.
Plooi combines fast unit tests, integration tests against Supabase, and explicit RLS policy tests so a single misplaced policy can’t expose another tenant’s data.
Test types
- Unit tests (Vitest) for utilities and services.
- Integration tests for the Supabase + service-layer boundary.
- RLS tests that assert each policy actually rejects cross-tenant reads and writes.
- E2E tests (Playwright) for sign-in, sign-up, the canvas, and billing flows.
- Manual tests for critical flows — billing, public sharing, account deletion.
Common commands
npm run test
npm run test:watchTest checklists and the full set of commands are in docs/TESTING.md.