Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-firefox-launcher

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-firefox-launcher

A Karma plugin. Launcher for Firefox.

  • 2.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
337K
decreased by-3.73%
Maintainers
4
Weekly downloads
 
Created

What is karma-firefox-launcher?

The karma-firefox-launcher is a plugin for the Karma test runner that allows you to run your tests in the Firefox browser. It provides seamless integration with Karma, enabling automated testing in Firefox as part of your continuous integration pipeline.

What are karma-firefox-launcher's main functionalities?

Launching Firefox for Testing

This configuration file for Karma sets up the test runner to use the Firefox browser. It specifies the use of the Jasmine framework and includes the necessary plugins for both Jasmine and the Firefox launcher.

module.exports = function(config) {
  config.set({
    browsers: ['Firefox'],
    frameworks: ['jasmine'],
    files: [
      'test/**/*.spec.js'
    ],
    plugins: [
      'karma-jasmine',
      'karma-firefox-launcher'
    ]
  });
};

Customizing Firefox Launch Options

This configuration demonstrates how to set up a custom launcher for Firefox in headless mode. This is useful for running tests in environments where you don't have a display, such as in a CI/CD pipeline.

module.exports = function(config) {
  config.set({
    browsers: ['Firefox'],
    customLaunchers: {
      FirefoxHeadless: {
        base: 'Firefox',
        flags: ['-headless']
      }
    },
    frameworks: ['jasmine'],
    files: [
      'test/**/*.spec.js'
    ],
    plugins: [
      'karma-jasmine',
      'karma-firefox-launcher'
    ]
  });
};

Other packages similar to karma-firefox-launcher

Keywords

FAQs

Package last updated on 03 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc