I'm trying to use JSTest.NET to test my JS code. This framework uses CScript to run JS. The issue that I'm currently facing is that my JS code is using window and document objects. I'm looking for a library that can mock Browser and DOM Objects so that I can test my JS code without actually instantiating a browser. Someone pointed me to JSDOM for mocking, but I'm kinda confused how to use this. Can anyone link me some resources that can help me to get started with JSDOM.