feat(supabase): @faunosteo/supabase package with PGlite harness and typed client

- tests/db: PGlite (PostgreSQL 17 WASM) applies the Supabase shim + migrations and
  runs supabase/tests/*.sql through pgTAP without Docker
- schema-types test pins tables, columns, enums, RPC args, RLS-on, no using(true)
- database.types.ts in supabase gen types format; createBrowserClient (PKCE)
- Supabase CLI pinned as root devDependency; db:* root scripts
This commit is contained in:
bchanot committed 2026-10-08 22:20:54 +02:00
1 parent 2d5ff0c33e
commit ce76c6597a
15 files changed
+1020 -2

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: 'node',
globals: true,
include: ['tests/**/*.test.ts'],
// PGlite boots a WASM Postgres per file: give it room on slow CI runners.
testTimeout: 60_000,
hookTimeout: 120_000,
},
})