News for hackers. Stuff that matters.
Re:Prisma – ORM for Node.js and TypeScript by matthewmueller on Wednesday April 21, 2021 @09:20AM (#26889290)
Thanks for this feedback. We're very aware of this problem and are are actually working on a guide for working with Jest right now.

It's a tricky problem because our use of the type-system is quite complex.

I quite like your idea of a test mode or maybe a mock client that we generate.

Re:Prisma – ORM for Node.js and TypeScript by nahtnam on Wednesday April 21, 2021 @02:47PM (#26893845)
I wonder if its possible to start a transaction at the beginning of each test and then rollback. That way we just need a db to run but it will never really be written to.

Or maybe just invest in this: https://github.com/oguimbal/pg-mem/issues/27 He has already put a lot of effort into it and I think with just a bit more support he can support Prisma

Re:Prisma – ORM for Node.js and TypeScript by brap on Wednesday April 21, 2021 @11:56AM (#26891325)
> I quite like your idea of a test mode or maybe a mock client that we generate.

Yes please!! :)