jsdom-global
jsdom-global copied to clipboard
Bad practice to set the global variables in Node.js
The JSDom documentation advises against making window
and document
, etc. part of the global namespace in Node.js. Should I therefore avoid using this package, or do you have a counter- argument?
Yes, I'm actually having issues with mocha randomly exiting during watch mode when this package is included. This seems dangerous to me.