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

Problems with testEnvironment "node" #9

Closed
joseaplwork opened this issue May 3, 2017 · 1 comment
Closed

Problems with testEnvironment "node" #9

joseaplwork opened this issue May 3, 2017 · 1 comment

Comments

@joseaplwork
Copy link

I'm barerly sure that I'm not the only one who is using jest with the default test environment which is "jsdom" for jest.

So I love this library, it works very well with the v2.0 but changing my testEnvironment to node just broke my tests. Because in my project I have access to the DOM global variables and the testEnvironment: jsdom handles it very good.

So I would like to keep the consistency in my tests and the jsdom test environment instead of adding complex global definitions.

Is there a workaround for this?

@joseaplwork joseaplwork changed the title Conflict with testEnvironment "node" and "jsdom" Problems with testEnvironment "node" May 3, 2017
@MicheleBertoli
Copy link
Member

Thanks @joseaplwork for opening the issue.
I'm going to close this in favor of #2 (which I just reopened).
Also, jestjs/jest#3156 introduces the multi-project support which makes it possible to run Jest with different configurations.

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