Skip to content

Commit

Permalink
fix DevExpress#152 - modify browserstack config file path to work
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickathompson authored and Patrick Thompson committed Aug 5, 2024
1 parent defc9a3 commit becd08f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { parse as parseUrl } from 'url';
import path from 'node:path';
import Promise from 'pinkie';
import { promisify } from 'util';
import parseCapabilities from 'desired-capabilities';
Expand Down Expand Up @@ -137,7 +138,7 @@ module.exports = {
},

_getCapabilitiesFromConfig () {
const configPath = process.env.BROWSERSTACK_CAPABILITIES_CONFIG_PATH;
const configPath = String(path.relative(__dirname, path.resolve(process.env.BROWSERSTACK_CAPABILITIES_CONFIG_PATH)));

if (!configPath)
return {};
Expand Down

0 comments on commit becd08f

Please sign in to comment.