Problem
Currently, there are no automated tests to verify the integration between our database and Prisma ORM. This gap makes it difficult to ensure that our Prisma queries and mutations work as expected, potentially leading to unnoticed database issues during development or in production.
We need to introduce a set of tests that confirm our database works correctly with Prisma and ensure that all queries and mutations perform as intended across various use cases.
Objectives
- Implement automated tests to verify database connectivity using Prisma.
- Test basic CRUD operations for all key models (e.g., User, Post, Order).
- Ensure that relational queries (e.g., fetching related data) work correctly.
- Test how Prisma handles edge cases, such as invalid data or failed connections.
- Ensure that all Prisma-generated queries are compatible with our database (e.g., PostgreSQL or MySQL).
Acceptance Criteria
Problem
Currently, there are no automated tests to verify the integration between our database and Prisma ORM. This gap makes it difficult to ensure that our Prisma queries and mutations work as expected, potentially leading to unnoticed database issues during development or in production.
We need to introduce a set of tests that confirm our database works correctly with Prisma and ensure that all queries and mutations perform as intended across various use cases.
Objectives
Acceptance Criteria