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

Package detail

@saritasa/karma-selenium-launcher

saritasa26MIT1.0.6

A Karma plugin. Run tests on remote instance of Selenium

readme

karma-selenium-launcher

Launcher for selenium webdriver

Installation

npm install @saritasa/karma-selenium-launcher --save-dev

Configuration

//karma.conf.js
module.exports = function(config){
  var webDriverConfig = {
    desiredCapabilities: {
      //capabilities of driver
    },
    host: 'localhost',
    port: 4444,
    path: '/wd/hub'
  };

  config.set({
    customLaunchers: {
      selenium_chrome: {
      base: 'Selenium',
      config: webDriverConfig,
      name: 'Karma Test',
      browserName: 'chrome'
      }
    },
    browsers: ['selenium_chrome']
  });
}

Refer to webdriverio config documentation as well as selenium's for desiredCapabilities.