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
Written by Jacob Oscarson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#