Re:From Karma to Mocha, with a taste of jsdom
by dmatteo on Tuesday November 24, 2015 @11:24AM
(#10621658)
Of course the comparison between Karma and Mocha is weird, that's why the entire Karma/Jasmine/Phantom combo and Mocha/jsdom is mentioned.
There's one piece missing in the Mocha/jsdom combo actually, the assertion library, and we use `unexpected` for that purpose.
One of the things I like about Karma is the ability to run the test suite in a number of browsers. We run our suite in Firefox, Chrome and PhantomJS as part of the CI setup.
I wonder if it wouldn't have been possible to set up a complementary test runner which allowed your Jasmine tests to be run with jsdom? That would give you the speed increase, but without needing to port, and would have allowed you to still leverage Karma when needed.
However, a good read and the Karma bootup time is certainly a pain point I've felt!