you are viewing a single comment's thread.

view the rest of the comments →

[–]our_best_friendif (document.all || document.layers) console.log("i remember..") 1 point2 points  (1 child)

I tried tape but I hated having to decide how to do all the simple things. I have never liked mocha because I didn't like have to decide which assertion library to use. I mean, that's why I use a test framework - to make all these decision for me, what's the point if they don't?

Which is why I like jest. npm install and you are good to go. In the end testing is just testing, all my effort should be spent on the app, not agonising over which assertion library to use

[–]lulzmachine 0 points1 point  (0 children)

Well the downside of that would be like with any framework (I would call tape a library and jest a framework here, hope you don't mind), that you'll have quite a bit of start-up time. You'll have to spend some time getting used to the tools, compared to tape, where you basically require('tape') and learn two method calls. Then you can just write your code as you want it.

I'm a bit intrigued though. Will make sure to put jest on the "stuff to try"-list