Nezir Zahirovic
Nezir Zahirovic

Unrevealed tips for unit testing with Jest

As a front-end engineer by profession, and having a few JavaScript open source projects myself, I’ve faced some challenges around unit testing, in my particular case, with Jest.For several times I question myself: “How did the test get to the point in which it’s so much more complex to implement than the feature itself?” - It’s usually like that, don’t take me wrong here, I’m just referring to extreme cases, where 3rd party libraries or even architectural decisions, make your code super hard to test.Nevertheless, I wanted to share with you a super pragmatic and short list of tips that might help you get that tricky stubborn mock to work.


Unrevealed tips for unit testing with Jest #javascriptba #javascript #nodejs #reactjs #angularjs #vuejs #meteorjs #typecscript #jquery #emberjs #bosnia