Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
// 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);
}