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

karma-chrome-launcher

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-chrome-launcher

A Karma plugin. Launcher for Chrome and Chrome Canary.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
894K
decreased by-60.06%
Maintainers
1
Weekly downloads
 
Created

What is karma-chrome-launcher?

The karma-chrome-launcher npm package is a plugin for Karma, a test runner for JavaScript. It allows developers to execute tests in the Chrome browser. It can launch Chrome in various modes, control browser instances, and integrate with continuous integration systems.

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

Launching Chrome for testing

This feature allows you to configure Karma to use Chrome as the browser for running tests. You simply add 'Chrome' to the 'browsers' array in your Karma configuration.

module.exports = function(config) {
  config.set({
    browsers: ['Chrome'],
    // ... other Karma configuration ...
  });
};

Running tests in headless Chrome

This feature enables you to run tests in a headless Chrome instance, which is useful for continuous integration environments where you don't need a visible UI.

module.exports = function(config) {
  config.set({
    browsers: ['ChromeHeadless'],
    // ... other Karma configuration ...
  });
};

Customizing Chrome flags

This feature allows you to customize the Chrome instance by adding command-line flags to alter its behavior for testing purposes.

module.exports = function(config) {
  config.set({
    customLaunchers: {
      Chrome_with_flags: {
        base: 'Chrome',
        flags: ['--disable-web-security', '--disable-gpu']
      }
    },
    browsers: ['Chrome_with_flags'],
    // ... other Karma configuration ...
  });
};

Other packages similar to karma-chrome-launcher

Keywords

FAQs

Package last updated on 26 Nov 2013

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