vitest-environment-prisma-postgres

JSON →
library 1.0.1 ·javascript
verified Jun 5, 2026

Vitest environment for Prisma & PostgreSQL designed for fast integration tests: seed your database once with production-like data, then run each test in a transaction that is rolled back after execution. Tests remain isolated without expensive reseeding. Current version 1.0.1 requires Prisma 7.x and Vitest 4.x. Provides a custom test environment, setup hooks, and typed configuration. Key differentiator: transaction-rollback isolation without database-level overhead, unlike alternatives that reseed per test.