Member-only story
Adding JEST to your Typescript project
Continuing my previous article on how to start a Typescript project, now we can add unit test with JEST

Welcome back. Recently I added an article on how to start your Typescript project from scratch using my minimum CLI. Today we are going to add your initial steps of unit testing with JEST.
To start, take my previous and final article code in branch 001 here. Once you are done, then we can move on.
So what is jest and why it is important?
Jest is a Testing Framework which allow us to build tested code and to get more confidence when refactoring and/or adding new features to our code. Amazing frameworks such as NestJS and React already have the configuration built in and ready to use. For this article, we are going to keep using my custom makin-cli with a version 0.0.22+. To install it:
npm install -g makin-cli
This will take the last version of my cli.
To install JEST in your Typescript project, you can either follow their documentation…