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
{{ message }}
Repository navigation
Karma is deprecated in Angular 20 - support Web Test Runner as direct replacement? #1928
Is your feature request related to a problem? Please describe.
Angular 20 deprecated karma, support for karma will be removed in Angular 22. The closest solution to karma seems to be Web Test Runner, but custom builders don't support it.
Describe the solution you'd like
Custom builders should add support for Web Test Runner to enable smooth transition off karma.
Describe alternatives you've considered
Jest, but it does not provide visual debugging, to the best of my knowledge, WTR is the only solution on the market that provides it. Debugging unit tests in complex projects without a visual debugger is a nightmare.
Additional context
If support for WTR is not possible or not planned in the near future, we might need to address a lot of tech debt to remove custom webpack configuration in our app. There is so much tech debt that we might as well forever stay on Angular 20/21.
" support for karma will be removed in Angular 22" - Does this mean in future v22, if we are to generate a new angular project using angular cli, karma related dependencies will no longer appear in the package.json ?
As of current angular 20.3, we still can see "karma" related dependencies inside package.json
Activity
hannah23280 commentedon Sep 27, 2025
" support for karma will be removed in Angular 22" - Does this mean in future v22, if we are to generate a new angular project using angular cli, karma related dependencies will no longer appear in the package.json ?
As of current angular 20.3, we still can see "karma" related dependencies inside package.json
just-jeb commentedon May 11, 2026
Angular 21 adopted Vitest officially. WTR has minimal Angular ecosystem adoption. We won't add a WTR builder — the Angular team's migration guide covers Karma → Vitest.
If there's interest in a Vitest builder for
angular-builders, open a separate feature request.