Quramy / jest-prisma

Jest environment for integrated testing with Prisma client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 extends jest-enviroment-jsdom
  • @quramy/jest-prisma-node extends jest-environment-node

After (jest-prisma v2.x)

  • @quramy/jest-prisma extends jest-enviroment-node
  • @quramy/jest-prisma-node -> will be removed