I use grunt-mocha to run unit tests through phantomJS.
I know that phantomJS has many useful features. Can I access this from a mocha test?
I looked at obvious places, such as an object window, to see if I could access the page object in any way, but nothing seemed obvious.
In particular, I would like to take a screenshot for the tested page.
source
share