-
Notifications
You must be signed in to change notification settings - Fork 38
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
Running jsdom with jest #31
Comments
any new thoughts at this issue? |
+1 |
1 similar comment
+1 |
Apparently jest already comes with jsdom preconfigured. So if you remove your jsdom-global import (or handwritten JSDOM setup), everything should work, plus the error message should be gone. For further information see https://stackoverflow.com/questions/40970780/how-to-setup-jsdom-when-working-with-jest |
@NicoleRauch Do you have the "handwritten JSDOM setup" example? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting this error while i'm trying to run jest tests.
node: 7.11.0
npm: 4.2.0
jest: 20.0.4
jsdom: 11.0.0
I'm running
require('jsdom-global')()
on mysetup.js
jest file and also inside the file that i using jsdomI also tried to write my own code and it worked for jest but didn't work from some reason on my production server.
I will keep investigate this issue just wonted to point that out and see if there is a quick fix for this issue.
thanks,
The text was updated successfully, but these errors were encountered: