4 ms·
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 becau
by matthewmueller 5y ago
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.
- brap 5y ago> I quite like your idea of a test mode or maybe a mock client that we generate. Yes please!! :)
- nahtnam 5y agoI 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 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