Quramy / jest-prisma

Jest environment for integrated testing with Prisma client
MIT License
266 stars 15 forks source link

Change base environment from jest-environment-jsdom to jest-environment-node #133

Open Quramy opened 6 months ago

Quramy commented 6 months ago

The following error may occur if @prisma/client runs in jsdom env:

PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `node`).

And the environment inheritance relationship inferred from the package name is misleading. ( e.g. #103 )

Current (jest-prisma v1.x )

After (jest-prisma v2.x)