newhavenio / newhavenio.github.io

active version of the website for newhaven.io built on the Jekyll framework
http://newhavenio.github.io/
MIT License
13 stars 12 forks source link

Testing Library #99

Open bsutt123 opened 6 years ago

bsutt123 commented 6 years ago

Now that things are going swimmingly and we can build the site again, lets get back to the real winner, testing.

Do you guys have a JS test framework of choice for unit tests? I'm partial to Jest, because I come from the react world where Jest is the standard, but I am open to others if people have strong opinions.

sukima commented 6 years ago

I am partial to Mocha or Jasmine. I also know QUnit very well. I know nothing of Jest in fact never heard of it. I might assume other JS devs know less of Jest then Jasmine or QUnit.

sukima commented 6 years ago

An advantage for Jasmine over both Mocha and QUnit is that Jasmine comes with its own mocking API while Mocha and QUnit would require Sinon to fill that need. Also Jasmine and QUnit comes with their own assertion API where Mocha would also needs something like Chai to fill that need.

jnimety commented 6 years ago

FWIW, We use karma with jasmine and headless chrome at Continuity. On Tue, May 15, 2018 at 3:48 PM Devin Weaver notifications@github.com wrote:

An advantage for Jasmine over both Mocha and QUnit is that Jasmine comes with its own mocking API while Mocha and QUnit would require Sinon to fill that need. Also QUnit comes with an assertion API where Mocha also needs something like Chai to fill that need.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/newhavenio/newhavenio.github.io/issues/99#issuecomment-389290920, or mute the thread https://github.com/notifications/unsubscribe-auth/AAETVPEyl6C4o3AOVELZPj9v2qZOrMveks5tyzEBgaJpZM4T5E6s .