It looks like I need to use a package called jsdom
However, recent versions of jsdom requires one to use io.js rather than node.js
So I found and installed io.js and modified the preferences so that WebStorm is now using io.js as the interpreter
I then installed jsdom and tried to run a quick test. However, I immediately get the error
jsdom 4.x onward only works on io.js, not Node.js
So for some reason, the jsdom code base seems to think that I'm still using nodejs as the interpreter rather than io.js
Anyone know what the problem is here?