# Karma to Jest, Web Test Runner or Vitest: Status | gen2.dev

> Karma is deprecated and takes only critical security fixes. Its README names Web Test Runner, jasmine-browser-runner, Jest and Vitest as alternatives.

Source: https://gen2.dev/successors/karma/

---

Successor Map · Testing

# Karma to Jest, Web Test Runner or Vitest: deprecated, with security fixes for now

Karma's maintainers deprecated it and named four alternatives. It still receives critical security fixes, on a clock tied to Angular's own migration path.

![Slide: Karma on the left, an arrow, and Jest, Web Test Runner or Vitest on the right.](https://gen2.dev/img/successor-karma.png)

Status of the old tool

Deprecated

Effort to move

A real project

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![Karma logo](https://gen2.dev/icons/tech/karma.png)Karma

Gen 2

![Jest logo](https://gen2.dev/icons/tech/jest.png)![Vitest logo](https://gen2.dev/icons/tech/vitest.png)Web Test Runner, jasmine-browser-runner, Jest or Vitest

Kind of tool

[Testing](https://gen2.dev/successors/testing/)

Status of Gen 1

Deprecated Karma's README states that it is deprecated and is not accepting new features or general bug fixes (checked November 28, 2026).

Effort to move

A real project: plan it and run both for a while

What breaks

Karma ran tests in real browsers; Jest and Vitest run in Node by default, so tests that depend on real browser behavior need a browser mode or a DOM emulator.

Should you move?

Move when convenient Karma's maintainers still triage and fix critical security issues, so there is time to plan, but no general bug will be fixed. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [4 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Karma logo](https://gen2.dev/icons/tech/karma.png)Gen 1

![Jest logo](https://gen2.dev/icons/tech/jest.png)Gen 2

Package

[karma](https://www.npmjs.com/package/karma)

[@web/test-runner](https://www.npmjs.com/package/@web/test-runner)

Latest version

6.4.4

1.0.1

Latest release

Jul 29, 2024

Nov 10, 2026

First release

Mar 9, 2013

Jun 6, 2020

License

MIT

MIT

Downloads, last week

3,548,134

186,944

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

## What Gen 1 was

Karma is a test runner that executes JavaScript tests inside real browsers and reports the results back to the terminal. Angular projects used it for years, usually paired with Jasmine.

Its README now begins with a notice: "Karma is deprecated and is not accepting new features or general bug fixes."

## What replaced it

The maintainers named the successors themselves. The README lists Web Test Runner and jasmine-browser-runner as browser-based tools that "can be used as a direct alternative," and Jest and Vitest as Node-based alternatives.

Security is handled differently from everything else. "Critical security issues in Karma will still be triaged and fixed as necessary." That continues until 12 months after Angular CLI's Web Test Runner support is marked stable. The latest release listed is v6.4.4.

Angular has since moved. Its documentation says, "The Angular CLI uses Vitest as the default unit test runner for new projects."

## What moving involves

The first decision is where the tests run.

-   **Stay in a browser.** Web Test Runner runs tests inside a headless browser. It does not include assertion or mocking libraries, so you bring your own.
-   **Move to Node.** Jest and Vitest run the tests in Node against an emulated DOM.

For Angular projects, the documented path to Vitest is: install `vitest` and a DOM emulator, change the test builder in `angular.json` to `@angular/build:unit-test`, move Karma-specific settings into a Vitest config, then delete `karma.conf.js` and `src/test.ts`.

A schematic, `ng g @schematics/angular:refactor-jasmine-vitest`, converts Jasmine tests and marks what it cannot convert with TODO comments. Angular labels this migration experimental.

## What breaks

**Real browser behavior.** A test that passed in Chrome under Karma may rely on layout, rendering or browser APIs that an emulated DOM does not provide. Those tests need the new runner's browser mode, or a browser-based runner.

**Karma plugins.** Reporters need Vitest-compatible replacements. Custom browser launchers become a `browsers` option plus a provider package.

**What the schematic skips.** It does not install packages, change the builder, remove Karma files or handle complex nested spies.

Before deleting anything, run the suite under both runners and compare the results, as in a [parallel run](https://gen2.dev/guide/parallel-run/). The tests that fail only under the new runner are the list of work.

## Should you move?

Move when you are working on the build or the test setup anyway. Critical security issues are still being fixed, so this is not an emergency. General bugs are not being fixed, so the next browser or Node change that breaks Karma is yours to work around.

The exception is a suite that depends heavily on real browser behavior. It should choose a browser-based successor instead of forcing its tests into Node.

## Common questions

### Is Karma dead?

It is deprecated. Karma's README states that it is deprecated and is not accepting new features or general bug fixes (checked November 28, 2026).

### What replaced Karma?

Web Test Runner, jasmine-browser-runner, Jest or Vitest. Effort to move: A real project: plan it and run both for a while

### Should I move off Karma?

gen2.dev's view: Move when convenient. Karma's maintainers still triage and fix critical security issues, so there is time to plan, but no general bug will be fixed.

## Sources

1.  [karma-runner/karma README - GitHub](https://github.com/karma-runner/karma) - The deprecation notice, the alternatives it names, and the policy on critical security fixes.
2.  [karma-runner/karma releases - GitHub](https://github.com/karma-runner/karma/releases) - Lists v6.4.4 as the latest release, after v6.4.3 and v6.4.2.
3.  [Migrating from Karma to Vitest - Angular documentation](https://angular.dev/guide/testing/migrating-to-vitest) - Says the Angular CLI uses Vitest as the default unit test runner for new projects; gives the manual steps and the refactor schematic.
4.  [Comparisons with Other Test Runners - Vitest documentation](https://vitest.dev/guide/comparisons) - Describes Web Test Runner as running tests inside a headless browser without bundled assertion or mocking libraries.
5.  [karma - npm](https://www.npmjs.com/package/karma) - latest version, release dates, license and last week's downloads, read on November 29, 2026
6.  [@web/test-runner - npm](https://www.npmjs.com/package/@web/test-runner) - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Parallel run](https://gen2.dev/guide/parallel-run/)

[All successor entries](https://gen2.dev/successors/)

Also moving to Vitest:

-   [Jest](https://gen2.dev/successors/jest/)

## More in Testing

-    [![Enzyme logo](https://gen2.dev/icons/tech/enzyme.png) Enzyme to React Testing Library Still active A real project Move when convenient](https://gen2.dev/successors/enzyme/)
-    [![Jest logo](https://gen2.dev/icons/tech/jest.png) Jest to Vitest Still active Mechanical Leave it](https://gen2.dev/successors/jest/)
-    [![JMeter logo](https://gen2.dev/icons/tech/jmeter.png) JMeter to k6 Still active A real project Leave it](https://gen2.dev/successors/jmeter/)
-    [![nose logo](https://gen2.dev/icons/tech/nose.png) nose to pytest Maintenance only Mechanical Move when convenient](https://gen2.dev/successors/nose/)
-    [![PhantomJS logo](https://gen2.dev/icons/tech/phantomjs.png) PhantomJS to headless Chrome and Playwright Abandoned Mechanical Move now](https://gen2.dev/successors/phantomjs/)
-    [![Protractor logo](https://gen2.dev/icons/tech/protractor.png) Protractor to Playwright or Cypress Abandoned A real project Move now](https://gen2.dev/successors/protractor/)
-    [![Selenium Grid logo](https://gen2.dev/icons/tech/selenium.png) Selenium Grid to Playwright Still active A real project Leave it](https://gen2.dev/successors/selenium/)

[All testing](https://gen2.dev/successors/testing/)
