jsdom-global icon indicating copy to clipboard operation
jsdom-global copied to clipboard

Bad practice to set the global variables in Node.js

Open joetidee opened this issue 7 years ago • 1 comments

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?

joetidee avatar Jun 11 '17 10:06 joetidee

Yes, I'm actually having issues with mocha randomly exiting during watch mode when this package is included. This seems dangerous to me.

saivan avatar Jul 11 '18 12:07 saivan