Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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.



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


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

Yes please!! :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: