Socket
Socket
Sign inDemoInstall

karma-ie-launcher

Package Overview
Dependencies
137
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-ie-launcher

A Karma plugin. Launcher for Internet Explorer.


Version published
Weekly downloads
67K
increased by2.34%
Maintainers
3
Install size
1.36 MB
Created
Weekly downloads
 

Readme

Source

karma-ie-launcher

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Launcher for Internet Explorer.

Installation

The easiest way is to keep karma-ie-launcher as a devDependency, by running

npm install karma-ie-launcher --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['IE']
  });
};

You can pass list of browsers as a CLI argument too:

karma start --browsers IE

You can run IE in emulation mode by setting the 'x-ua-compatible' option:

customLaunchers: {
  IE9: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE9'
  },
  IE8: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE8'
  }
}

See Specifying legacy document modes on MSDN.

Running IE in "No add-ons mode"

Please note that since v0.2.0 default behaviour of launching Internet Explorer has changed. Now it runs using system-wide configuration (uses same settings as if you would run it manually) but prior to v0.2.0 it was spawned with -extoff flag set explicitly, so all extensions were disabled.

If you expect the same behaviour as it was before v0.2.0, Karma configuration should be slightly changed:

  • create new customLauncher configuration (IE_no_addons is used in an example below) with custom flags (in our case it is -extoff only)
  • browser IE in browsers field should be replaced with your new custom launcher name
  browsers: ['IE_no_addons'],
  customLaunchers: {
    IE_no_addons: {
      base:  'IE',
      flags: ['-extoff']
    }
  }

See IE Command-Line Options on MSDN.


For more information on Karma see the homepage.

Keywords

FAQs

Last updated on 03 May 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc