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

Add the option to depend of jest-environment-node instead of js-dom #103

Open
drichard-nexapp opened this issue Sep 20, 2023 · 1 comment

Comments

@drichard-nexapp
Copy link

I'm in a nestjs app, so depending on js-dom seems odd. Maybe having a

@quramy/jest-prisma/environment/node
@quramy/jest-prisma/environment/js-dom

seems more fitting

@majkiw
Copy link

majkiw commented Oct 13, 2023

I think this is the solution you were looking for:
https://github.com/Quramy/jest-prisma/blob/main/packages/jest-prisma-node/README.md

Remember to also change it to @quramy/jest-prisma-node in jest.config to :

  testEnvironment: "@quramy/jest-prisma-node/environment",

and in tsconfig to:

    "types": ["@types/jest", "@quramy/jest-prisma-node"],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants