How to use the fx-runner/lib/utils.normalizeBinary function in fx-runner

To help you get started, we’ve selected a few fx-runner 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 mozilla / example-addon-repo / test / functional / utils.js View on Github external
function promiseActualBinary(binary) {
  return FxRunnerUtils.normalizeBinary(binary)
    .then(binary => Fs.stat(binary).then(() => binary))
    .catch(ex => {
      if (ex.code === "ENOENT") {
        throw new Error("Could not find ${binary}");
      }
      throw ex;
    });
}
github Standard8 / example-webextension / test / functional / utils.js View on Github external
function promiseActualBinary(binary) {
  return FxRunnerUtils.normalizeBinary(binary)
    .then(binary => Fs.stat(binary).then(() => binary))
    .catch(ex => {
      if (ex.code === "ENOENT") {
        throw new Error("Could not find ${binary}");
      }
      throw ex;
    });
}
github ipfs-shipyard / ipfs-companion / test / integration-firefox / utils.js View on Github external
function promiseActualBinary (binary) {
  return FxRunnerUtils.normalizeBinary(binary)
    .then(binary => Fs.stat(binary).then(() => binary))
    .catch(ex => {
      if (ex.code === 'ENOENT') {
        throw new Error('Could not find' + binary)
      }
      throw ex
    })
}
github mozilla / libdweb / test / setup.js View on Github external
const findFirefox = async binaryPath => {
  const binary = await fxUtil.normalizeBinary(binaryPath)
  if (fs.exists(binary)) {
    return binary
  } else {
    throw new Error(`Could not find ${binaryPath}`)
  }
}
github mozilla / shield-studies-addon-template / test / functional / utils.js View on Github external
function promiseActualBinary(binary) {
  return FxRunnerUtils.normalizeBinary(binary)
    .then(normalizedBinary =>
      Fs.stat(normalizedBinary).then(() => normalizedBinary),
    )
    .catch(ex => {
      if (ex.code === "ENOENT") {
        throw new Error("Could not find ${binary}");
      }
      throw ex;
    });
}

fx-runner

A node cli to control Firefox

MPL-2.0
Latest version published 12 months ago

Package Health Score

68 / 100
Full package analysis

Popular fx-runner functions