b5tsca
Last Updated: February 25, 2016
·
1.328K
· JacobOscarson

Mocha tests via Node + jsdom

I've been running parts of a test suite intended for browsers + iOS UIWebView's with Node.js to save startup time and for easier running via CLI for a while. But the tests uses a lot of calls to the DOM api that I against better judgements tried to simulate for myself. I've been aware of jsdom (https://www.npmjs.org/package/jsdom) for a while and wanted to use it. Today I made a proof of concept, and it's quite promising. You can have a look here: https://github.com/JacobOscarson/mocha-jsdom