Change base environment from jest-environment-jsdom to jest-environment-node
Quramy opened this issue · comments
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 )
@quramy/jest-prisma
extendsjest-enviroment-jsdom
@quramy/jest-prisma-node
extendsjest-environment-node
After (jest-prisma v2.x)
@quramy/jest-prisma
extendsjest-enviroment-node
@quramy/jest-prisma-node
-> will be removed