Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Quramy opened this issue Feb 27, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Quramy
Copy link
Owner

Quramy commented Feb 27, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant