DEV Community

Discussion on: Start Testing Your JavaScript Code with Jest

Collapse
 
ohdylan profile image
Dylan Oh

Agreed with that! Because Jest pretty much covers most of the functionalities by itself and it is not as flexible like others :)

Mocha and Sinon makes a good combination too!

Collapse
 
jaecktec profile image
Constantin

you should also mention proxyquire since sinon does not cover everything.
Mocking 3rd party deps is easy with jest, however requires some tinkering with sinon.
Sadly...

Thread Thread
 
ohdylan profile image
Dylan Oh

Well, I guess nobody is perfect :) Basically, I stick with Jest for the initial setup, and will combine with other libraries when necessary

Thread Thread
 
jaecktec profile image
Constantin

In my experience that works well. I just got paranoid with the recent supply chain attacks 😂

Some comments have been hidden by the post's author - find out more