How to use karma-firefox-launcher - 3 common examples

To help you get started, we’ve selected a few karma-firefox-launcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SignalR / SignalR / test / Microsoft.AspNet.SignalR.Client.JS.Tests / karma.conf.js View on Github external
// Karma configuration
// Generated on Tue Sep 04 2018 11:57:39 GMT-0700 (Pacific Daylight Time)

let browsers = [];

try {
  // Karma configuration for a local run (the default)
  const fs = require("fs");
  const which = require("which");

  // Bring in the launchers directly to detect browsers
  const ChromeHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromeHeadless"][1];
  const ChromiumHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromiumHeadless"][1];
  const FirefoxHeadlessBrowser = require("karma-firefox-launcher")["launcher:FirefoxHeadless"][1];
  const FirefoxDeveloperHeadlessBrowser = require("karma-firefox-launcher")["launcher:FirefoxDeveloperHeadless"][1];
  const EdgeBrowser = require("karma-edge-launcher")["launcher:Edge"][1];
  const SafariBrowser = require("karma-safari-launcher")["launcher:Safari"][1];
  const IEBrowser = require("karma-ie-launcher")["launcher:IE"][1];

  function browserExists(path) {
    // On linux, the browsers just return the command, not a path, so we need to check if it exists.
    if (process.platform === "linux") {
      return !!which.sync(path, { nothrow: true });
    } else {
      return fs.existsSync(path);
    }
  }

  function tryAddBrowser(name, b) {
    var path = b.DEFAULT_CMD[process.platform];
    if (b.ENV_CMD && process.env[b.ENV_CMD]) {
github dotnet / aspnetcore / src / SignalR / clients / ts / FunctionalTests / scripts / karma.local.conf.js View on Github external
try {
    // Karma configuration for a local run (the default)
    const createKarmaConfig = require("./karma.base.conf");
    const fs = require("fs");
    const which = require("which");

    // Bring in the launchers directly to detect browsers
    const ChromeHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromeHeadless"][1];
    const ChromiumHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromiumHeadless"][1];
    const FirefoxHeadlessBrowser = require("karma-firefox-launcher")["launcher:FirefoxHeadless"][1];
    const FirefoxDeveloperHeadlessBrowser = require("karma-firefox-launcher")["launcher:FirefoxDeveloperHeadless"][1];
    const EdgeBrowser = require("karma-edge-launcher")["launcher:Edge"][1];
    const SafariBrowser = require("karma-safari-launcher")["launcher:Safari"][1];
    const IEBrowser = require("karma-ie-launcher")["launcher:IE"][1];

    let browsers = [];

    function browserExists(path) {
      // On linux, the browsers just return the command, not a path, so we need to check if it exists.
      if (process.platform === "linux") {
        return !!which.sync(path, { nothrow: true });
      } else {
        return fs.existsSync(path);
      }
    }

    function tryAddBrowser(name, b) {
github aspnet / SignalR / clients / ts / FunctionalTests / scripts / karma.local.conf.js View on Github external
try {
    // Karma configuration for a local run (the default)
    const createKarmaConfig = require("./karma.base.conf");
    const fs = require("fs");
    const which = require("which");

    // Bring in the launchers directly to detect browsers
    const ChromeHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromeHeadless"][1];
    const ChromiumHeadlessBrowser = require("karma-chrome-launcher")["launcher:ChromiumHeadless"][1];
    const FirefoxHeadlessBrowser = require("karma-firefox-launcher")["launcher:FirefoxHeadless"][1];
    const EdgeBrowser = require("karma-edge-launcher")["launcher:Edge"][1];
    const SafariBrowser = require("karma-safari-launcher")["launcher:Safari"][1];
    const IEBrowser = require("karma-ie-launcher")["launcher:IE"][1];

    let browsers = [];

    function browserExists(path) {
      // On linux, the browsers just return the command, not a path, so we need to check if it exists.
      if (process.platform === "linux") {
        return !!which.sync(path, { nothrow: true });
      } else {
        return fs.existsSync(path);
      }
    }

    function tryAddBrowser(name, b) {

karma-firefox-launcher

A Karma plugin. Launcher for Firefox.

MIT
Latest version published 8 months ago

Package Health Score

75 / 100
Full package analysis

Popular karma-firefox-launcher functions