My current setup involves using grunt-mocha to execute unit tests with phantomJS.
I'm aware of the numerous capabilities that phantomJS offers. Is there a way to utilize these features within a mocha test?
I have already checked the typical locations, like the window
object, in search of ways to access the page object, but haven't found any clear solutions.
One specific requirement I have is to generate a screenshot of the test page.