You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By no means an extensive evaluation, but in my attempt to use it with v21, the main issue I'm hitting is Uncaught Error: NG0101: ApplicationRef.tick is called recursively thrown, and mainly when providing keyboard input.
Some debugging shows it's coming from waitForWrapper:
I didn't encounter any issue with tick, probably because the application is zoneless.
A minor change that I am noticing with respect to routing is that the render promise of components with routes now resolves before an initial redirect completes.
Interesting finding with the new vitest which is default in Angular v21 is how configureTestingModule works with non-standalone components: angular/angular#66007angular/angular#65665
It means that the current implementation of WrapperComponent for inline-template tests won't work as expected since it's not a standalone component.
Probably we should think about migrating this to standalone with this update.
Interesting finding with the new vitest which is default in Angular v21 is how configureTestingModule works with non-standalone components: angular/angular#66007angular/angular#65665
It means that the current implementation of WrapperComponent for inline-template tests won't work as expected since it's not a standalone component.
Probably we should think about migrating this to standalone with this update.
Yea, I agree. This should become the default in v21.
By no means an extensive evaluation, but in my attempt to use it with v21, the main issue I'm hitting is Uncaught Error: NG0101: ApplicationRef.tick is called recursively thrown, and mainly when providing keyboard input.
Some debugging shows it's coming from waitForWrapper:
Interesting finding with the new vitest which is default in Angular v21 is how configureTestingModule works with non-standalone components: angular/angular#66007angular/angular#65665
It means that the current implementation of WrapperComponent for inline-template tests won't work as expected since it's not a standalone component.
Probably we should think about migrating this to standalone with this update.
@dzonatan can you provide an example please? I'm not encountering any issues with declaring the wrapping component as standalone: false. Funny enough I do get errors when I change this to true.
this is nuts. I was having issues when trying to migrate some bigger project to vitest but now I can't come up with a simple failing test case by using testing-library. I'll have to dig in my git-stash to remember what was the cause then.. this may take time.
Activity
rdamazio commentedon Nov 26, 2025
By no means an extensive evaluation, but in my attempt to use it with v21, the main issue I'm hitting is
Uncaught Error: NG0101: ApplicationRef.tick is called recursively thrown, and mainly when providing keyboard input.Some debugging shows it's coming from
waitForWrapper:angular-testing-library/projects/testing-library/src/lib/testing-library.ts
Line 592 in d4d4567
I'm still on zoned change detection (using
provideZoneChangeDetection()).ThiloAschebrock commentedon Dec 8, 2025
I didn't encounter any issue with
tick, probably because the application is zoneless.A minor change that I am noticing with respect to routing is that the
renderpromise of components with routes now resolves before an initial redirect completes.dzonatan commentedon Dec 12, 2025
Interesting finding with the new vitest which is default in Angular v21 is how
configureTestingModuleworks with non-standalone components: angular/angular#66007 angular/angular#65665It means that the current implementation of
WrapperComponentfor inline-template tests won't work as expected since it's not a standalone component.Probably we should think about migrating this to standalone with this update.
timdeschryver commentedon Dec 12, 2025
Yea, I agree. This should become the default in v21.
timdeschryver commentedon Dec 16, 2025
I'm working on a new release, feel free to try it out as
@testing-library/angular@betaand provide some feedback here.If you encounter any issues, please provide a reproduction - or a test case in this repo on the
betabranch.More info can be found at https://github.com/testing-library/angular-testing-library/releases or #559
timdeschryver commentedon Dec 16, 2025
@rdamazio I'm unable to reproduce this, can you provide an example please?
timdeschryver commentedon Dec 16, 2025
@dzonatan can you provide an example please? I'm not encountering any issues with declaring the wrapping component as
standalone: false. Funny enough I do get errors when I change this to true.dzonatan commentedon Dec 17, 2025
this is nuts. I was having issues when trying to migrate some bigger project to vitest but now I can't come up with a simple failing test case by using testing-library. I'll have to dig in my git-stash to remember what was the cause then.. this may take time.
But the reason why this doesn't work:
But this works:
seems to be the fact that Wrapper in
renderstarts with an empty template and then is set throughoverrideTemplate:This probably doesn't help much but at least that's what I found for now.
timdeschryver commentedon Dec 18, 2025
Thanks for the update and the investigation @dzonatan ! I was also looking at why it can't be a standalone component, but I couldn't figure it out.
github-actions commentedon Jan 5, 2026
🎉 This issue has been resolved in version 19.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀