Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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