When using standalone components the declarations property is not used by Angular tests
Instead of
await TestBed.configureTestingModule({
imports: [],
declarations: [ExampleComponent],
providers: [],
}).compileComponents();
it should be
await TestBed.configureTestingModule({
imports: [ExampleComponent],
providers: [],
}).compileComponents();
When using standalone components the
declarationsproperty is not used by Angular testsInstead of
it should be