Hi :wave: Do any of you guys use <Playwright> alo...
# orm-help
a
Hi 👋 Do any of you guys use Playwright along with Prisma for db setup/cleanup?
👀 2
r
Oooh. I’m interested in this question/answer
o
Hey, I do not. But in case you want an example with Prisma, I saw it used with tRPC in this example here: https://github.com/trpc/trpc/tree/main/examples/next-prisma-starter
👍 1
r
for setup and cleanup you can also try using
prisma migrate reset
that should destroy your current database, create it again and then run your seed (if you have one)
a
I've been experimenting with it and so far it's been great (no longer feels hacky like in Cypress). However sometimes my test command is not exiting, it hangs forever 🤔 I suspect it has to do with Prisma not closing the connection to the db or something similar
I described this problem here: https://github.com/prisma/prisma/issues/13683