Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(
`\nExpecting a player build served at port: ${process.env.http || '8080'}\n`
);
// start browserstack-local for testing
console.log('Connecting local to browserstack automate...');
let bs_local_args = {
key: key,
localIdentifier: localIdentifier,
force: true,
logfile: './browserstackLocal.log'
};
bs_local = new browserstacklocal.Local();
wdio.bs_local = bs_local;
// bs_local.stop(function() {
// console.log('Stopped BrowserStackLocal');
// });
// start: function() {
bs_local.start(bs_local_args, async function(err) {
if (err) {
console.log('its done and not working', err.message);
}
console.log(
'Connected.\n\nNight gathers, and now my watch begins..\nI am the sword in the darkness.\n'
);
// check if BrowserStack local instance is running
console.log(