Coming from a PHP background and with PHPUnit testing, I started my journey into writing tests on NodeJs with some expectations. For most, I was disappointed but for some, I was blown away. I guess this is a feeling you have to get used to with JavaS...

Markdown supported · ⌘↵ to post
Victor Anuebunwa
Running into issues with jest can be a bit of a drag, but tips like these makes it more bearable. Really helpful article. Thanks 👍🏻
Ezeh Livinus
Software Developer
Nice one...
You can also make use of your Jests' Setup and Teardown helper functions. With that, you can decide what gets set-up or destroyed after or before each test/describe suit runs.