We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ddc23f commit 91626b2Copy full SHA for 91626b2
src/launcher.ts
@@ -26,6 +26,16 @@ export default class BrowserstackLauncherService implements Services.ServiceInst
26
}
27
28
onPrepare (config?: Options.Testrunner, capabilities?: Capabilities.RemoteCapabilities) {
29
+ if (Array.isArray(capabilities)) {
30
+ capabilities.forEach((capability: Capabilities.DesiredCapabilities | any) => {
31
+ const wdioServiceVersion = process.env.npm_package_version;
32
+ if (capability['bstack:options']) {
33
+ capability['bstack:options'].wdioService = wdioServiceVersion;
34
+ } else {
35
+ capability['browserstack.wdioService'] = wdioServiceVersion;
36
+ }
37
+ })
38
39
if (!this._options.browserstackLocal) {
40
return log.info('browserstackLocal is not enabled - skipping...')
41
0 commit comments