Up until now testing has been going well with JSDOM and Mocha. So far have not had to test any components t
Insert your global object modifying(passing window and document objects to global) before React is required. Because React creates its ExecutionEnvironment object while required and don't modify it while works.