Skip to content

Issue with Decorator when testing component #91

@f1ght4fun

Description

@f1ght4fun

I actually got same issue as the paradoxm in closed Issue #81

I have 1 unit test which doesnt raise this issue on the component which is decorated with UntilDestroy(). This component doesnt have any component level providers. Simple

And in another case it breaks with same error mentioned in the original ticket.
The only difference in two tests I noticed - it happens whenever you override components to inject component providers after TestBed.configureTestingModule({}) and before compileComponents().

In other words in case you have component decorated and you inject any providers component-level (services) it doesn't play nice

Originally posted by @f1ght4fun in #81 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions