A guide for tRPC MySQL drizzle testing setup
Hey folks I have built a product using t3 stack with MySQL db and drizzle as the ORM. I would like to add unit tests as well here is the blocker there were no good resources I could find for mocking a MySQL db using drizzle. Can someone point me to few resources it would be of great help. Thank you!
2 Replies
If you find anything please let me know, I'm also starting unit testing for my app and have no idea where to start.
Seems like vitest is pretty widely used, right now I'm trying to get trpc + context working.
I was thinking of using sqllite instead but drizzle has different methods for different db and so can't use it
Can you upvote it instead? So that someone will answer if they know