はじめに Angular で単体テストを書いているとき、テストケースは pass するがコンソールエラーが出ていることがしばしばある。 例えば次のようなエラーだ。 ERROR: 'NG0304: 'app-home-child' is not a known element (used in the 'HomeComponent' component template): 1. If 'app-home-child' is an Angular component, then verify that it is a part of an @NgModule where this compone…