I am looking for a way to replicate the window.document object so that I can run jQuery in a non-browser environment.
My goal is to have a set of javascript unit tests that are exercised with MSTest with the help of a .NET javascript interpreter. I would like to have these javascript unit tests run with the rest of our C# tests.
So far, simple unit tests using the interpreter work fine and behave perfectly, however, throwing jQuery and the use of browser objects into the mix isn't working due to the non-browser environment. I have searched and cannot find any type of mock/fake document object that I could use.