database-testing
Pass
Audited by Gen Agent Trust Hub on Mar 3, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill consists of documentation and code examples for database testing using Prisma and Jest.
- [COMMAND_EXECUTION]: Uses execSync to execute Prisma migration commands (npx prisma migrate reset) during test setup. This is a standard and expected practice in automated testing frameworks to ensure a clean environment.
- [CREDENTIALS_UNSAFE]: Contains placeholder database credentials in a sample environment configuration file (postgresql://postgres:password@localhost:5432/myapp_test). These are standard local development defaults and do not expose sensitive production information.
- [COMMAND_EXECUTION]: Employs prisma.$executeRawUnsafe for truncating tables between tests. While this function can be sensitive, it is used here with table names retrieved directly from the database schema for the purpose of test data isolation.
Audit Metadata