benv
benv copied to clipboard
Stub a browser environment in node.js and headlessly test your client-side code.
This breakes benv since it doesn't fix the jsdom major version: Error: Cannot find module 'jsdom/lib/old-api.js'
Just noticed that the `### benv.teardown(clearDOM = false)` section wasn't rendering properly on GitHub.
http://visionmedia.github.io/mocha/ is no longer a working URL. The new website for Mocha is http://mochajs.org/
Right now if you, say pass in an incomplete stub, jade might choke and it just shows a stack of anonymous function calls stopping at benv.render.
We might be able to just use `benv.require` and determine what we need to **set** . Through parsing the file and determining the variables that require `.jade` files. I wonder...