Key facts
| Gen 1 | |
|---|---|
| Gen 2 | |
| Kind of tool | 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 |
Gen 1 and Gen 2 side by side
| npm registry | ||
|---|---|---|
| Package | karma | @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. 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
- karma-runner/karma README - GitHub - The deprecation notice, the alternatives it names, and the policy on critical security fixes.
- karma-runner/karma releases - GitHub - Lists v6.4.4 as the latest release, after v6.4.3 and v6.4.2.
- Migrating from Karma to Vitest - Angular documentation - Says the Angular CLI uses Vitest as the default unit test runner for new projects; gives the manual steps and the refactor schematic.
- Comparisons with Other Test Runners - Vitest documentation - Describes Web Test Runner as running tests inside a headless browser without bundled assertion or mocking libraries.
- karma - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
- @web/test-runner - npm - 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.

