Skip to content

Test fail when using vitest, Angular 18 and @jscutlery/swc-angular v0.17.0 #680

@jahusa02

Description

@jahusa02

Hey!

I have a Stepper Component extending the CDKStepper. In it's Provider Array it has something like:

providers: [{provide: CDKStepper, useExisting: CustomStepper}]

Also We have a Custom Step Component having the same but CdkStep and CustomStep

In our tests we use a test Component that is using the Custom Stepper and Steps.

With version < 0.17.0, the CDKStepper gets its Constructor Arguments e.g. ChangeDetectorRef, but in version 0.17.0 it doesn't

The Error:
TypeError: Cannot read properties of undefined (reading '_stateChanged')
It's properly this line

Can't create a example repo for now.
Just let me now if you need more infos

Thanks!

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