Hey everyone! Not sure if this is the right place ...
# orm-help
m
Hey everyone! Not sure if this is the right place to ask this question, but I'm struggling a bit with prisma and integration testing. I'd like to specify a different DATABASE_URL when running my tests in Jest, such that I don't mess up my dev database. Is there a way to configure this? I configure different env variables for testing in the "setupFilesAfterEnv" jest config option, such as log level, api host etc. and they're all picked up by Jest. However, specifying a different DATABASE_URL doesn't make prisma pick it up. It still loads the DATABASE_URL value from the .env file (which points to my dev db).
Couldn't find what I was looking for here: Integration testing with Prisma | Prisma Docs
r
@Magne Skutle 👋 I personally have done it in this way, 1 schema per test file.
m
Thanks, I'll check it out 🙂 👍
👍 1