Hey guys, does anyone have experience with prisma integration tests in microservices. Technology stack is: nodejs - nestjs - prisma - (graphql)
I would like to do this with testcontainers, because I also want to integrate and test the complete database.
Workflow:
• Setup Database testcontainer
• dynamic adjust DATABASE_URL based on testcontainer port
• connect/reconnect Prisma Client with new DATABASE_URL
• Run test
• After every test reset database (probably truncate)
I didn’t find any good article or tutorial.