I'm trying to run JS unit tests using Windows Script Host. But the issue that I'm stuck with is how to mock Browser Objects and DOM objects without opening a browser.
I know I can use mocking libraries to mock something for each instance, but I want know if there are libraries that in general can mock DOM Objects like Document, Event etc. same goes with Browser Objects like Window, Screen.
Someone pointed me to MochiKit I'm trying to see if it is possible to use this for the intended task, but it will be a great help if anyone can point me to mocking libraries.