Gathering detailed insights and metrics for karma-firefox-launcher
Gathering detailed insights and metrics for karma-firefox-launcher
Gathering detailed insights and metrics for karma-firefox-launcher
Gathering detailed insights and metrics for karma-firefox-launcher
@types/karma-firefox-launcher
TypeScript definitions for karma-firefox-launcher
karma-firefox-extra-launcher
A Karma plugin. Launcher for Firefox.
karma-local-wd-launcher
Karma Local WebDriver Launcher - Launches local web browsers using WebDriver, to enable screenshots and other advanced tests to be executed in-browser.
@wikimedia/karma-firefox-launcher
A Karma plugin. Launcher for Firefox.
A Karma plugin. Launcher for Firefox.
npm install karma-firefox-launcher
Typescript
Module System
Node Version
NPM Version
97.6
Supply Chain
99.5
Quality
80.8
Maintenance
100
Vulnerability
100
License
JavaScript (99.44%)
Shell (0.56%)
Total Downloads
122,138,282
Last Day
28,567
Last Week
396,480
Last Month
1,859,464
Last Year
18,160,091
MIT License
106 Stars
282 Commits
53 Forks
8 Watchers
29 Branches
49 Contributors
Updated on Jun 10, 2025
Minified
Minified + Gzipped
Latest Version
2.1.3
Package Id
karma-firefox-launcher@2.1.3
Unpacked Size
27.03 kB
Size
9.32 kB
File Count
9
NPM Version
8.12.0
Node Version
14.21.3
Published on
Mar 03, 2024
Cumulative downloads
Total Downloads
Launcher for Mozilla Firefox.
karma-firefox-launcher
is deprecated and is not accepting new features or general bug fixes.See deprecation notice for karma
.
Web Test Runner,
jasmine-browser-runner
,
and playwright-test
provide
browser-based unit testing solutions which can be used as a direct alternative.
The easiest way is to keep karma-firefox-launcher
as a devDependency in your package.json
.
You can simple do it by:
1npm install karma-firefox-launcher --save-dev
1// karma.conf.js 2module.exports = function (config) { 3 config.set({ 4 plugins: [require("karma-firefox-launcher")], 5 browsers: [ 6 "Firefox", 7 "FirefoxDeveloper", 8 "FirefoxAurora", 9 "FirefoxNightly", 10 ], 11 }); 12};
You can pass list of browsers as a CLI argument too:
1karma start --browsers Firefox,Chrome
To run Firefox in headless mode, append Headless
to the version name, e.g. FirefoxHeadless
, FirefoxNightlyHeadless
.
You can specify the location of the Firefox executable using the following environment variables:
FIREFOX_BIN
(for browser Firefox
or FirefoxHeadless
)FIREFOX_DEVELOPER_BIN
(for browser FirefoxDeveloper
or
FirefoxDeveloperHeadless
)FIREFOX_AURORA_BIN
(for browser FirefoxAurora
or FirefoxAuroraHeadless
)FIREFOX_NIGHTLY_BIN
(for browser FirefoxNightly
or
FirefoxNightlyHeadless
)In addition to Environment variables you can specify location of the Firefox executable in a custom launcher:
1browsers: ['Firefox68', 'Firefox78'], 2 3customLaunchers: { 4 Firefox68: { 5 base: 'Firefox', 6 name: 'Firefox68', 7 command: '<path to FF68>/firefox.exe' 8 }, 9 Firefox78: { 10 base: 'Firefox', 11 name: 'Firefox78', 12 command: '<path to FF78>/firefox.exe' 13 } 14}
To configure preferences for the Firefox instance that is loaded, you can specify a custom launcher in your Karma
config with the preferences under the prefs
key:
1browsers: ['FirefoxAutoAllowGUM'], 2 3customLaunchers: { 4 FirefoxAutoAllowGUM: { 5 base: 'Firefox', 6 prefs: { 7 'media.navigator.permission.disabled': true 8 } 9 } 10}
If you have extensions that you want loaded into the browser on startup, you can specify the full path to each
extension in the extensions
key:
1browsers: ['FirefoxWithMyExtension'], 2 3customLaunchers: { 4 FirefoxWithMyExtension: { 5 base: 'Firefox', 6 extensions: [ 7 path.resolve(__dirname, 'helpers/extensions/myCustomExt@suchandsuch.xpi'), 8 path.resolve(__dirname, 'helpers/extensions/myOtherExt@soandso.xpi') 9 ] 10 } 11}
Please note: the extension name must exactly match the 'id' of the extension. You can discover the 'id' of your
extension by extracting the .xpi (i.e. unzip XXX.xpi
) and opening the install.RDF file with a text editor, then look
for the em:id
tag under the Description
tag. If your extension manifest looks something like this:
1<?xml version="1.0" encoding="utf-8"?> 2 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> 3 <Description about="urn:mozilla:install-manifest"> 4 <em:id>myCustomExt@suchandsuch</em:id> 5 <em:version>1.0</em:version> 6 <em:type>2</em:type> 7 <em:bootstrap>true</em:bootstrap> 8 <em:unpack>false</em:unpack> 9 10 [...] 11 </Description> 12</RDF>
Then you should name your extension myCustomExt@suchandsuch.xpi
.
For more information on Karma see the homepage.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/6 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-21.4%
28,567
Compared to previous day
Last Week
-17%
396,480
Compared to previous week
Last Month
4.8%
1,859,464
Compared to previous month
Last Year
10.1%
18,160,091
Compared to previous year