Simple Unit Testing using Jest
Install Jest
$ yarn add --dev jest
or
$ npm install --save-dev jest
Setup
In this example, we are going to create a sample function that prints "Hello world" and test it using jest in javascipt.
For us to begin, we need to create a folder in our dir...
paugramming.hashnode.dev2 min read