Unit Testing with Jest


Why unit tests?

  1. difficulty to test a code means bad design
  2. gives us confidence that we can refactor our application, or add new features to it, without breaking existing functionalities
  3. In Angular, the default testing framework is Jasmine + test runner Karma


👇🏻 Source