Quramy / jest-prisma

Jest environment for integrated testing with Prisma client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Transaction API error]: Transaction already closed: Could not perform operation.

kiai-hoang opened this issue · comments

Hello,
I got an error when using jestPrisma.client. Currently I am using jest-prisma version 1.4.0
I try to increased maxWait and timeout to 100000 but the error still occurs.

This is node_modules/@quramy/jest-prisma-core/lib/delegate.js in my project.

image

It seem to timeout param is not include here?
Do you have any suggestions to fix error?

I realized that jest-prisma-core and jest-prisma in yarn.lock are not same version.
Just upgrade both of them to latest version, and it work.

image