Skip to content

Karma is deprecated in Angular 20 - support Web Test Runner as direct replacement? #1928

Closed

Description

@vzakharov-rxnt

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.

Activity

  1. hannah23280 commented on Sep 27, 2025

    @hannah23280

    " 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

  2. just-jeb commented on May 11, 2026

    @just-jeb
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions