Angular testing: “Illegal state: Could not load the summary for directive” for an empty component
问题 None of my components were passing unit tests, so I made a new one in the project to try and diagnose. import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-thing', templateUrl: './thing.component.html', styleUrls: ['./thing.component.scss'] }) export class ThingComponent implements OnInit { constructor() { } ngOnInit() { } } And a thing.component.spec.ts file as follows describe('ThingComponent', () => { let component: ThingComponent; let fixture: ComponentFixture