froth-webdriverio-framework 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ const commonconfig = require('./commonconfig');
3
3
  const isBrowserStackEnabled = process.env.BROWSERSTACK;
4
4
  console.log("isBrowserStackEnabled", isBrowserStackEnabled);
5
5
 
6
- const browserStackConfig = {
6
+ const browserStackConfig = isBrowserStackEnabled === 'true' ? {
7
7
  user: process.env.BROWSERSTACK_USERNAME,
8
8
  key: Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'),
9
9
  commonCapabilities: {
@@ -14,10 +14,10 @@ const browserStackConfig = {
14
14
  networkLogs: true
15
15
  }
16
16
  }
17
- } ;
17
+ }: {};
18
18
 
19
19
  const commonmobconfig = deepmerge.all([
20
- commonconfig,
20
+
21
21
  {
22
22
  logLevel: 'info',
23
23
  coloredLogs: true,
@@ -38,7 +38,8 @@ const commonmobconfig = deepmerge.all([
38
38
  updateJob: false,
39
39
  reporters: ['spec'],
40
40
  },
41
- browserStackConfig // Add BrowserStack config conditionally
41
+ browserStackConfig,
42
+ commonconfig,
42
43
  ]);
43
44
 
44
45
  module.exports = commonmobconfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",