Open frenkelor opened 7 years ago
any new thoughts at this issue?
+1
+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?
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,