Prisma Ops And Test Hygiene

Use when a Node service uses Prisma in production or its tests are being written or hardened: connection pool size and poolers, query logging and latency, replacing client middleware with extensions, reading generated migration SQL before it runs (renames, new required columns, enum changes, risky statements, expand and contract), Postgres row-level security behind Prisma (application role without superuser or BYPASSRLS, separate migration URL, set_config per transaction, a test that proves isolation), and test hygiene for Node services (assert the five outcomes, port 0 for servers, event listener order and error events, no sleeping, realistic data, property-based and mutation testing).

techmefr Updated

File contents

techmefr/mentis commit 8d81a7dc93

Frequently asked questions

npx get-skill add techmefr/prisma-ops-and-test-hygiene