In this post, we will go over how to quickly replace Karma and Jasmine, the default test runner and assertion framework in a new Angular project, with Jest.
Recently, I wanted to use a method for two different concrete classes that shared an interface. The solution? Using a generic method with type constraints.