Carlos Weckesser
02/23/2022, 11:47 AMasync
function passed to the prisma.$transaction()
function. I’m using Jest to mock the Prisma client, but in this case I would have to provide a mock for the prisma.$transaction()
function and in doing so, I would be replacing the very logic I’m trying to unit test.
I hope I explained the case well enough.
I’d really appreciate some guidance from any that has run into this scenario.
Thanks in advance!
P/S: Is the Prisma Team planning to implement manual transaction control (start, commit, rollback)?Olgierd Liberski
02/23/2022, 12:02 PMCarlos Weckesser
02/23/2022, 12:21 PM