- 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
13 lines
305 B
TypeScript
13 lines
305 B
TypeScript
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,
|
|
},
|
|
})
|