You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
joseaplwork
changed the title
Conflict with testEnvironment "node" and "jsdom"
Problems with testEnvironment "node"
May 3, 2017
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.
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 mytestEnvironment
tonode
just broke my tests. Because in my project I have access to the DOM global variables and thetestEnvironment: 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?
The text was updated successfully, but these errors were encountered: