Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

karma-ie-launcher

karma-runner204.4kMIT1.0.0TypeScript support: definitely-typed

A Karma plugin. Launcher for Internet Explorer.

karma-plugin, karma-launcher, ie

readme

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.

changelog

1.0.0 (2016-05-03)

Bug Fixes

<a name"0.2.0">

0.2.0 (2015-06-09)

Features

  • Disable -extoff flag to be set by default (5aa409e7, closes #27)

Breaking Changes

  • IE Addons are now disabled by default when using the karma-ie-launcher (5aa409e7)

<a name"0.1.5">

0.1.5 (2015-06-09)

Bug Fixes

  • fail when launcher is called if IE is not found instead of failing as soon as the plugin is loaded (4ff5d1e6, closes #14)

<a name"0.1.4">

0.1.4 (2015-06-09)

Bug Fixes

  • add Travis build status to README.md (373f886c)
  • setup travis build (c739d2de, closes #18)
  • setup travis build (8092fc03, closes #18)
  • add code style verification (d482680a, closes #17)
  • kill all IE processes when terminating browser process (12793814, closes #15)

Features

<a name"0.1.3">

0.1.3 (2015-06-09)

<a name"0.1.2">

0.1.2 (2015-06-09)

Features

  • support 64-bit IE and isolate environment. (c75ed348, closes #1)

<a name"0.1.1">

0.1.1 (2015-06-09)

<a name"0.1.0">

0.1.0 (2015-06-09)

<a name"0.0.1">

0.0.1 (2015-06-09)