Description of the bug
I'm using Angular 20.2 with vitest through analogjs plugin.
We recently made the switch to zoneless because its promoted stable.
When rendering Components through the MockRenderFactory and passing input values via a props object (like its mentioned in the docs), changing the props and run fixture.detectChanges() where sufficient to trigger changeDetection in zonefull.
With zoneless this doesn't work anymore. Tried with fixture.whenStable() and fixture.whenRenderingDone(), ngMocks.input() and setInput from the componentRef, but no luck. Also tried simple MockRender.
Only running fixture.changeDetectorRef.markForCheck will trigger change Detection.
When trying this with TestBed.createComponent it will work like expected when setting Input via setInput, so I guess this is related to how the MockRender works but idk.
Maybe I'm doing something wrong
Thanks in advance
Description of the bug
I'm using Angular 20.2 with vitest through analogjs plugin.
We recently made the switch to zoneless because its promoted stable.
When rendering Components through the
MockRenderFactoryand passing input values via a props object (like its mentioned in the docs), changing the props and runfixture.detectChanges()where sufficient to trigger changeDetection in zonefull.With zoneless this doesn't work anymore. Tried with
fixture.whenStable()andfixture.whenRenderingDone(),ngMocks.input()andsetInputfrom the componentRef, but no luck. Also tried simpleMockRender.Only running
fixture.changeDetectorRef.markForCheckwill trigger change Detection.When trying this with
TestBed.createComponentit will work like expected when setting Input viasetInput, so I guess this is related to how the MockRender works but idk.Maybe I'm doing something wrong
Thanks in advance