The knockout unit tests rely on document.write inserting HTML in place. JSDOM doesn't do this, and it causes scripts to execute in the wrong order. Current hack-fix is to remove the script injection to get knockout tests to run.