Skip to content

Angular 14 support #296

Closed
Closed
@jadengis

Description

@jadengis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions