Closed
Description
Description
Currently standalone components, directives and pipes cannot be tested because they are automatically added to the declarations
portion when configuring TestBed internally. Angular throws an error when trying to declare a standalone component.
Proposed solution
Add the component/directive/pipe-under-test to the imports section of TestBed.configureTestingModule
if the component is standalone.
Alternatives considered
There isn't really a way to work around this.