How to use the intern.default.run function in intern

To help you get started, we’ve selected a few intern 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 webcompat / webcompat.com / tests / functional / _intern.js View on Github external
}

// clear out the headless options arguments
if (args.showBrowser) {
  config.capabilities["moz:firefoxOptions"].args = [];
  config.environments.forEach(obj => {
    if (obj.browserName === "chrome") {
      obj.chromeOptions.args = [];
    }
  });
}

intern.configure(config);

try {
  intern.run().then(
    () => {
      console.log("it started, yay!");
    },
    err => {
      console.log("something bad happened inside intern.run()");
      console.log(err);
      process.exit(1);
    }
  );
} catch (e) {
  console.log("caught an error!");
  console.log(e);
  process.exit(1);
}