Start Angular Library with Jest In 5 minutes

☝ The Jest setup described in this article is tested with Angular CLI 9

You like Angular and you also like Jest? However Angular CLI comes with Karma and Jasmine. This article provides bash shell commands to convert Angular projects from Angular/Karma to Angular/Jest in 5 minutes.

Here are the steps.

  1. Initialize the library