Why I use Tape Instead of Mocha & So Should You
Eric Elliott
1.3K64

I agree that tape has own place in js testing frameworks world.

But I totally disagree with such aggressive way of encouraging people to use tape instead of mocha.

  • with mocha/jasmine you can also write such simple tests as in your examples without any configuration
  • befaroeEach/afterEach are really convenient way to setup setup/cleanup all needed stubs for bunch of tests. No one speaks about global state!
  • And the main point I disagree: You say: developer should spent the most of time on developing his awesome app instead of managing tests. I’m sure that tests has absolutely the same importance for app as well as main logic. And it’s a big mistake to think of them as of such minor part of your code. Such approach will end badly when app grow.
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.