Testing infrastructure (Vitest, PGlite isolation)
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun run patterns:build.
Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.
Category: Architecture & Request Pipeline · Tier: light · Risk: low — structural pattern, no external services
Describes the Vitest + PGlite testing harness that runs entirely inside the dev container, giving each test an isolated in-process Postgres instance via drizzle-kit's pushSchema.
When to use: Reach for it when writing or running tests that need database isolation or want to understand the container execution model.
Docs
Code
Machine-readable record: architecture-testing-infra in mcp/patterns.registry.json.