You don't need a dumb browser to run DOM tests with Mocha. A package like jsdom provides a lot of what is needed to conduct DOM testing without using a browser without a headset or not. For example, we used it for testing code that processes the DOM tree.
Mocha DOM Node.js. - . , DOM, . , , , jQuery Node.js Mocha, npm install jquery, jsdom.
- PhantomJS, . instace jsdom MutationObserver. ( MutationEvents, MutationObserver.) , , MutationObserver, - , , PhantomJS.