When testing an angular controller within a large module, I encountered the "Controller is not a function" error. To fix this issue, I realized that I need to mock the DOM and set:
<html>
to
<html ng-app='myApp'>
by manipulating
document.documentElement.outerHTML
However, I faced a nomodificationallowederror
Is there a way to modify the tag using jsdom, specifically mocha-jsdom?