Alexandro.Net

Version 1.0.0

@stackline/karma

Spectacular Test Runner for JavaScript.

Independent maintenance of karma 6.4.4. Original authors and licenses are retained.

Installation

# Preserve existing imports with an npm alias
npm install karma@npm:@stackline/karma@1.0.0
# Or use the scoped package name in your imports
npm install @stackline/karma@1.0.0

Node.js: >= 10. Read the compatibility and maintenance notes before migrating.

Usage and API

The reference below may retain upstream package names. Use the alias installation above to run those imports with this Stackline release.

@stackline/karma

Independent maintenance fork of karma@6.4.4, preserving its API and published type declarations.

npm install @stackline/karma
# Keep existing imports:
npm install karma@npm:@stackline/karma@1.0.0

Stackline · Issues · Community

See UPSTREAM.md for source identity and issue review, and CHANGELOG.md for maintenance changes. Functional tests also run against the final npm tarball; releases are published from GitHub Actions with provenance.

Upstream documentation

Karma

js-standard-style npm version npm downloads

Code Climate PRs Welcome Dependency Status devDependency Status semantic-release

A simple tool that allows you to execute JavaScript code in multiple real browsers.

The main purpose of Karma is to make your test-driven development easy, fast, and fun.

Karma is deprecated and is not accepting new features or general bug fixes.

The web testing space has evolved significantly in the 10+ years since Karma's creation. The web landscape looks very different today and new patterns and tools have emerged in the ecosystem. New test runners offer more performant alternatives, and Karma no longer provides clear unique value.

Based on the current state of the web testing ecosystem, we have made the hard decision to deprecate Karma.

We know Karma is used particularly commonly in the Angular ecosystem, so Angular is adding Jest and Web Test Runner support to provide a migration path off of Karma. See the Angular blog for more details.

Critical security issues in Karma will still be triaged and fixed as necessary. This will continue until 12 months after Angular CLI's Web Test Runner support is marked stable.

For those outside Angular looking to migrate off Karma, both Web Test Runner and jasmine-browser-runner provide browser-based unit testing solutions which can be used as a direct alternative. Jest and Vitest also provide Node-based alternatives.

It has been incredible to see Karma's impact on the web testing ecosystem and we greatly appreciate the support of everyone who contributed to an awesome community. Keep testing. ✅

Help and Support

For questions and support please use the mailing list or Gitter. The issue tracker is for bug reports and feature discussions only.

When should I use Karma?

But I still want to use _insert testing library_

Karma is not a testing framework, nor an assertion library. Karma just launches an HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like. There are already plugins for most of the common testing frameworks:

If you can't find an adapter for your favourite framework, don't worry and write your own. It's not that hard and we are here to help.

Which Browsers can I use?

All the major browsers are supported, if you want to know more see the browsers page.

Troubleshooting

See FAQ.

I want to use it. Where do I sign?

You don't need to sign anything but here are some resources to help you to get started...

Obligatory Screencast.

Every serious project has a screencast, so here is ours. Just click here and let the show begin.

Installation.

See installation.

Using it.

See configuration.

This is so great. I want to help.

Please, see contributing.

Why did you create this?

Throughout the development of AngularJS, we've been using JSTD for testing. I really think that JSTD is a great idea. Unfortunately, we had many problems with JSTD, so we decided to write our own test runner based on the same idea. We wanted a simple tool just for executing JavaScript tests that is both stable and fast. That's why we use the awesome Socket.io library and Node.js.

My boss wants a license. So where is it?

MIT License

Upstream issues and maintenance review

Upstream review

Independent maintenance of karma6.4.4. Original history: https://github.com/karma-runner/karma/tree/84f85e7016efc2266fa6b3465f494a3fa151c85c

The original runtime API, CLI name, Node engine range and source notices are retained. Browser assets are rebuilt from the original client/context/common sources with esbuild; no unnecessary cryptographic browser shims are installed in the development environment. Byte hashes of the original npm package and reviewed differences are recorded in .stackline/upstream.json.

Evidence collected: 2026-09-29T00:21:57.433511+00:00. Latest100 open and30 closed issue/PR entries were queried and PRs removed. The table records the59 returned open issues without claiming they were all reproduced or fixed.

Issue Finding
#3925 Karma deprecate npm package The Stackline scoped fork starts independent maintenance; upstream deprecation/lifecycle discussion is not an upstream endorsement.
#3934 DABH:update-colors Open report retained for follow-up; no fix claimed in this compatibility release.
#3677 Support for ESM config files (with "type": "module") Open report retained for follow-up; no fix claimed in this compatibility release.
#3888 Karma 6.4.4 Depends on "Vulnerable" inflight Library No advisory is present in the final installed runtime graph, but deprecated inflight remains through the compatible glob dependency. This is a documented transitive scope limitation, not a claim of unrestricted closure-policy compliance.
#3920 Updating the minimatch version The fresh lock resolves the patched compatible minimatch line; full and runtime audits report zero findings.
#3919 Remove Open report retained for follow-up; no fix claimed in this compatibility release.
#3915 Fixing it Open report retained for follow-up; no fix claimed in this compatibility release.
#2474 Call for Contributors Maintenance/lifecycle discussion, not an API defect.
#3910 The test runner sometimes emits browser log events and test finished in the wrong order Open report retained for follow-up; no fix claimed in this compatibility release.
#3803 Angular 14 karma gets stuck after executing tests inside Gitlab Kubernetes Pod runner for ChromeHeadless and does not exit Open report retained for follow-up; no fix claimed in this compatibility release.
#3820 Unit Tests Sporadically Disconnect on our CI:CD builds Open report retained for follow-up; no fix claimed in this compatibility release.
#3854 karma config not loading with angular 13 Open report retained for follow-up; no fix claimed in this compatibility release.
#2342 Duplicate console log messages when conflicting reporters are defined Open report retained for follow-up; no fix claimed in this compatibility release.
#3887 "Some of your tests did a full page reload!" on MacOS when using Chrome 128.x Open report retained for follow-up; no fix claimed in this compatibility release.
#1004 add an option to clear console when using autoWatch:true Open report retained for follow-up; no fix claimed in this compatibility release.
#3267 Disconnectedclient disconnected from CONNECTED state between every run in Angular Open report retained for follow-up; no fix claimed in this compatibility release.
#3899 Different Coverage Numbers Based On Test Run Order Open report retained for follow-up; no fix claimed in this compatibility release.
#3898 Update chokidar to v4 Open report retained for follow-up; no fix claimed in this compatibility release.
#3897 Cannot start ChromeHeadless 128, 129, 130, 131 Open report retained for follow-up; no fix claimed in this compatibility release.
#3891 Npm warn deprecated inflight@1.0.6 rimraf@3.0.2 glob@7.2.3 Deprecated glob7/rimraf3/inflight remain in the compatible runtime graph. This task is limited to direct parent packages; no recursive fork is created.
#3884 npm warn deprecated with karma package Same explicitly recorded transitive maintenance limitation as3891.
#3885 npm start karma.conf.js Open report retained for follow-up; no fix claimed in this compatibility release.
#3880 SyntaxError: Unexpected token '.' Open report retained for follow-up; no fix claimed in this compatibility release.
#3876 throw Error(yargs parser supports a minimum Node.js version of ${minNodeVersion} Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`); Open report retained for follow-up; no fix claimed in this compatibility release.
#3879 Cypress - Error: certificate has expired in existing project Open report retained for follow-up; no fix claimed in this compatibility release.
#3874 Update socket.io-parser dependency to fix security vulnerability in Karma The fresh compatible dependency graph resolves patched Socket.IO parser dependencies; runtime/full audits pass.
#1706 'base' and 'absolute' being replaced in reporter output Open report retained for follow-up; no fix claimed in this compatibility release.
#2304 Expose the ability to take screenshots Open report retained for follow-up; no fix claimed in this compatibility release.
#3868 ng test not working with Node version 18.18.2 . Error " Cannot read properties of undefined (reading 'range') " Open report retained for follow-up; no fix claimed in this compatibility release.
#3872 Karma dependency ua-parser-js 2.0 license change to AGPL ua-parser-js stays on the compatible MIT0.7 line; no AGPL2.x migration occurs.
#3866 Getting timeout issue when executing code coverage from ADO pipeline multiple times Open report retained for follow-up; no fix claimed in this compatibility release.
#3843 Is this project dead? Maintenance/lifecycle discussion. This independent fork preserves provenance, tests and attribution.
#3857 Latest version of socket.io causes tests to fail on macOS Open report retained for follow-up; no fix claimed in this compatibility release.
#3856 Latest packages are not working properly(lots of test cases shows error) Open report retained for follow-up; no fix claimed in this compatibility release.
#3855 the process of running cases is blocked since No binary for Chrome browser on your platform, but I have configured two browsers, one is available and one is missing. Open report retained for follow-up; no fix claimed in this compatibility release.
#440 Minimatch patterns don't work when starting with "!" Open report retained for follow-up; no fix claimed in this compatibility release.
#3847 New Chrome version 113 driver fails to start Open report retained for follow-up; no fix claimed in this compatibility release.
#3842 How to use with Typescript 5 Open report retained for follow-up; no fix claimed in this compatibility release.
#3837 Compatibility with pnpm Open report retained for follow-up; no fix claimed in this compatibility release.
#1087 Tests Cached giving wrong results Open report retained for follow-up; no fix claimed in this compatibility release.
#3835 Karma hangs when no browsers are passed Open report retained for follow-up; no fix claimed in this compatibility release.
#3834 Cannot serve assets that don't fit its narrow view of acceptable types Open report retained for follow-up; no fix claimed in this compatibility release.
#3804 Weird behavior for top-level-await with karma runner Open report retained for follow-up; no fix claimed in this compatibility release.
#3830 Tests pass only in debug mode (with --browsers=Chrome flag) Open report retained for follow-up; no fix claimed in this compatibility release.
#3829 Seems like customContextFile, customClientContextFile options doesn't work Open report retained for follow-up; no fix claimed in this compatibility release.
#3823 Critical vulnerability: Insufficient validation when decoding a Socket.IO packet Patched compatible Socket.IO dependencies are resolved by the fresh lock; no vulnerable graph is shipped.
#3715 Replace ua-parser-js or pin current version Retains the compatible MIT0.7 line and resolves its current patched version.
#3261 Autowatch not working with karma-webpack on karma version 4.0 Open report retained for follow-up; no fix claimed in this compatibility release.
#3295 Karma sometimes generates Error: read ECONNRESET after successful test run Open report retained for follow-up; no fix claimed in this compatibility release.
#3691 Proposal: Add an API to recover after DISCONNECT Open report retained for follow-up; no fix claimed in this compatibility release.
#3284 Option to fail on skipped tests Open report retained for follow-up; no fix claimed in this compatibility release.
#3777 Karma always disconnects Chrome while CONFIGURING Open report retained for follow-up; no fix claimed in this compatibility release.
#3817 Angular 14 karma gets stuck after executing tests on Azure Devops Linux Build Agents using chrome Headless resulting in stuck pipeline Open report retained for follow-up; no fix claimed in this compatibility release.
#3810 Karma Code Coverage Exit Code is always 0 even when test coverage threshold is not met Open report retained for follow-up; no fix claimed in this compatibility release.
#3811 Karma cannot find Firefox profile [Ubuntu] Open report retained for follow-up; no fix claimed in this compatibility release.
#2740 _ Open report retained for follow-up; no fix claimed in this compatibility release.
#2739 _ Open report retained for follow-up; no fix claimed in this compatibility release.
#3806 Randomly: Executed 0 of 0 SUCCESS Open report retained for follow-up; no fix claimed in this compatibility release.
#3801 Unit Test Error in Angular 13 -- TypeError: jit___pipeBind1_8(...) is not a function Open report retained for follow-up; no fix claimed in this compatibility release.

Functional validation

The retained suites cover589 server/unit cases,45 client cases in real Chromium, and63 end-to-end scenarios/341 steps including Chromium and Firefox. The modern harness uses native HTTP/2, explicitly trusted2048-bit test certificates, maintained Cucumber/Mocha/Sinon, and the original minimal timer-faking behavior. A user-agent snapshot reflects the compatible updated UA parser no longer treating CPU architecture as the operating-system version.

The final package is extracted and tested with its packaged runtime and browser assets. Full source and runtime audits must report zero findings. The release requires CI/CodeQL, exact tarball identity and npm provenance, valid direct/alias consumers and matching immutable release assets.

The transitive deprecation limitation above is explicit. Only the original portfolio’s direct dependency forks are in scope; this release is not an unrestricted pass of the recursive Production Dependency Closure Policy.

CodeQL follow-up

Completion now matches literal prefixes, and browser return navigation accepts only HTTP(S) URLs that also match an operator-supplied allowlist. Executable/local URLs are rejected even with a permissive pattern. The return navigation feature intentionally permits external HTTP(S) destinations selected by that allowlist. Runtime and test files remain scanned. Test HTTP helpers send explicit plain-text/JSON content types.

The default return-URL pattern permits any HTTP(S) destination. This preserves Karma's optional external return-navigation feature and leaves an open-redirect risk when a crafted return_url query is followed. Operators should restrict allowedReturnUrlPatterns to their intended origins with anchored, escaped hostnames and an authority boundary (including rejection of userinfo or hostname suffixes). Do not use this feature as an authentication callback or a trust decision. CodeQL's redirect alert is retained as a documented compatibility risk, not described as a fixed vulnerability; the script-execution alert is a false positive only after the mandatory HTTP(S) guard. No runtime path or query was excluded from scanning.

Release changes

Changelog

1.0.0

Release files and references

Package bytes, npm provenance and the immutable GitHub release were verified for this version. Security checks describe the reviewed release; documented compatibility risks and upstream reports are not blanket claims of resolution.