-
-
Notifications
You must be signed in to change notification settings - Fork 18
Test fail when using vitest, Angular 18 and @jscutlery/swc-angular v0.17.0 #680
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededswc-angularswc-angular-plugin
Description
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededswc-angularswc-angular-plugin