Skip to main content

Module db

Module db 

Source
Expand description

Database provisioning for tests.

Deliberately avoids reading DATABASE_URL to prevent accidental production use.

Structsยง

IsolatedTestDb
A test database scoped to a single test. Call cleanup() to drop it immediately, or rely on future test runs to clean up orphaned databases.
TestDatabase
Database access for tests.