Error: You need to include some adapter that implements __karma__.start method

It does seem like this is a very general error, however in my case the problem was either that I didn’t run karma start from the correct folder, or that I didn’t restart it after changing the configuration. I’ll leave this question open and hopefully it can become a resource for others who experience this … Read more

Angular 2 Karma Test ‘component-name’ is not a known element

Because in unit tests you want to test the component mostly isolated from other parts of your application, Angular won’t add your module’s dependencies like components, services, etc. by default. So you need to do that manually in your tests. Basically, you have two options here: A) Declare the original NavComponent in the test describe(‘AppComponent’, … Read more