The examples of deployment are useless, its cool i...
# orm-help
d
The examples of deployment are useless, its cool if you only deploy your app once and never again, but I doubt that is the case for anyone with “real” apps
r
Hey @Dan 👋
I find it strange there is absolutely no documentation/guides/examples of any CI/CD or testing with Prisma
We do have examples of testing with Prisma in the official examples repo here. Also there are community made examples here and here that are examples of testing with CI/CD.
I also find it strange that Prisma can be prod ready, but migrate is only beta? Who is actually using prisma without migrate?
There are lots of folks using Prisma without Migrate with something known as Introspection. This is useful when you already have an existing database with existing migrations and still want to use Prisma. Migrate is completely opt-in in that case. You can have a look at the above examples and add a deployment step to GitHub actions to whichever platform you are deploying 🙂
d
I really think there should be a testing guide in your docs. To be completely honest those examples are a bit odd if you as me. They also seem a bit of a hack rather than a real Prisma instance running PG behind it. This just seems looked over in my honest opinion and should have a simple page that gives some guidance on setting up a jest testing suite using prisma.
r
It’s not a hack as this is real integration testing against an actual database and your application. So you do have a Prisma instance accessing PG and testing against your API.
d
@Ryan - From what I am seeing, it seems this is using sqlite? Am I not understanding this file correctly? https://github.com/prisma/prisma-examples/blob/latest/typescript/testing-express/prisma/prisma-test-environment.js#L21 This is the file that makes it feel “hacky” and hard to understand what is going on.
r
The one I was referring to was this example that I sent you above. It uses Postgres and Introspection at the moment and the same can be achieved with Migrate.
👍 1