testing best practices
Can anyone share how they're writing tests that involve drizzle? Looking for something similar to these docs for Prisma:
https://www.prisma.io/docs/guides/testing/unit-testing
5 Replies
@johnnydt did you find a solution
No
If you want you write unit tests that involve Drizzle, you can mock like you would mock any thing else
There's no point in testing library code in my opinion
For database stuff, it's better to run integration tests in some docker or something like that
Just my two cents
ok i think i got a working solution. mine was a little more complicated since i am using pg_uuidv7 extension. But now this is running all my migration files to the docker container postgres server @johnnydt