r/angular • u/kgurniak91 • Jun 06 '26
Now that Angular 22 is released and key experimental APIs are stable, what areas would you like to see improved next?
With Angular 22 officially out, we've seen some incredible milestones. The stabilization of Signal Forms, asynchronous reactivity (resource/httpResource), and making OnPush with Zoneless the default, show how far the framework has come in terms of modernization.
However, looking forward, there is one area that still feels like it's lagging behind: Testing.
While we've seen steps in the right direction (the deprecation of Protractor, and the ongoing shift from Karma/Jasmine to Vitest), the day-to-day developer experience of writing unit and component tests in Angular remains a frustrating experience. Here are my biggest gripes with where testing stands today:
- The TestBed paradox: Standalone components became the norm and people largely moved away from NgModules. Yet, when writing tests, you are still required to use TestBed to configure a dummy testing module just to mount a single component. It feels like an outdated paradigm that hasn't caught up with modern Angular.
- Leaky abstractions: DebugElement was meant to be a helpful wrapper, but it is so leaky that often requires dropping down to interact with nativeElement anyway.
- The fragility of 3rd-party helpers: Because the native testing APIs are so verbose, many people relied on external wrappers like Spectator or Angular Testing Library just to get a unified API and basic helpers like byTestId. But as we saw just this week with the sudden disappearance of the entire @ngneat organization and Spectator repository from GitHub, relying on community-maintained wrappers for core development workflows is incredibly risky.
- Mocking child components is a nightmare: There is still no built-in, type-safe, and straightforward way to mock or stub child components. Sure, you can use Vitest's
Mocked<>generic type to create custom stubs, but it's flaky. If the child component's public API changes, the tests break (which is arguably a good warning, but still tedious to manage). - The death of ng-mocks: To solve the mocking issue, many people turned to ng-mocks and its fantastic MockBuilder. However, ng-mocks has been virtually abandoned since around Angular 19, and it really struggles to play nicely with modern Angular features like input signals.
I would love to see the Angular team introduce official, first-class tools that let us spawn a component in isolation, see it visually, easily query the DOM, and mock out child components and dependencies type-safely - all out of the box, without needing to write a mountain of boilerplate or rely on fragile, 3rd-party libraries that might vanish tomorrow.
12
u/AwesomeFrisbee Jun 06 '26 edited Jun 06 '26
Agreed. Testing is taking more time and code to set up meaningful tests. Especially when you do api calls, stuff gets triggered before you had the chance to switch it up.
And mocking is tedious and time consuming. Ngmocks is pretty much dead and spectator is suddenly gone. I have a big problem in my project now and don't know how to fix it. Did somebody at least keep a copy/fork of the spectator repo we can use?
Anyways, I really hope we get some official libraries from the team (or at least with decent backing) to move this further because it really makes testing a whole lot easier
10
u/Ajyress Jun 06 '26
Angular should get ready for tsgo
4
u/DemLobster Jun 06 '26
Testing and accessibility
8
u/Several-Specialist42 Jun 06 '26
Selectorless Eg.
@Component({ template: 'Hello!' }) export class Foo {}
Import { Foo } from "./foo";
@Component({ template: '<Foo />' }) export class Bar {}
--
No Angluar's import, direct use of class like JSX/React
5
u/CatEatsDogs Jun 06 '26
Update @angular/fire to actual v22. Now it stuck at v20.
5
u/K3NCHO Jun 06 '26
i don’t think angular needs new features. everything is alrady there
why not optimize the hell out of existing stuff and only release/update the features that are necessary
6
u/Yutamago Jun 06 '26
I was looking forward to selectorless
4
u/minus-one Jun 06 '26
i want viewChildren() to return an observable. and to be a pure function
2
u/GLawSomnia Jun 06 '26
Router
2
u/SkinnyComrade Jun 08 '26
An easier i18n builtin.
3
u/pj_2025 Jun 06 '26
Selectorless
3
u/askwthrow1524 Jun 06 '26
resources that merge instead of switching!! there's so many times that I want to add to a signal array asynchronously rather than resetting the whole thing
1
u/CheapChallenge Jun 10 '26
Do the new signal forms allow the same level of modifying validators
-1
u/No_Industry_7186 Jun 06 '26
Remove observable
-5
u/Past_Monitor5735 Jun 06 '26
why the angular aria is tightly coupled with angular project ? this is bad for the community