Hello everyone :wave: , based on a recent conversa...
# orm-help
e
Hello everyone πŸ‘‹ , based on a recent conversation with a few people in the channel, Here's a blog post about doing unit and functional testing for Prisma with Docker and Jest: https://dev.to/eddeee888/how-to-write-tests-for-prisma-with-docker-and-jest-593i Hope it helps! πŸ™‚
😍 2
πŸ€– 1
🦜 1
prisma rainbow 1
πŸ’― 5
prisma cool 1
j
Correct me if I’m wrong but it looks like the database isn’t being cleared after each test run. This is where prisma-test-utils would really be useful, but its unmaintained atm 😞 Besides that, this is very useful! Thanks for the writeup. I’m gonna explore testing more with this πŸ™‚
e
No, you are not wrong πŸ™‚ It was getting too long so I skipped that part. In the full example, there's a script that drops the database and reset it after every test: β€’ ts script β€’ yarn command to drop the database and create a new one
πŸ‘ 1
πŸ™Œ 1