I'm using grunt-mocha to run unit tests via phantomJS.
I know that phantomJS has a lot of useful functionality. Can I access that from within a mocha test?
I've looked in the obvious places such as the window
object to see if I can somehow access the page object, but nothing seems obvious.
Specifically, I'd like to render a screenshot of the page under test.