artes 1.1.28 → 1.1.29
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.
- package/cucumber.config.js +8 -5
- package/package.json +1 -1
package/cucumber.config.js
CHANGED
|
@@ -117,11 +117,14 @@ module.exports = {
|
|
|
117
117
|
worldParameters: artesConfig.worldParameters || {}, // Custom world parameters
|
|
118
118
|
},
|
|
119
119
|
env: process.env.ENV
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
(
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
? JSON.parse(process.env.ENV)
|
|
121
|
+
: (typeof artesConfig.baseURL === "object" && artesConfig.baseURL !== null
|
|
122
|
+
? (
|
|
123
|
+
artesConfig.env && artesConfig.baseURL.hasOwnProperty(artesConfig.env.trim())
|
|
124
|
+
? artesConfig.env.trim()
|
|
125
|
+
: Object.keys(artesConfig.baseURL)[0]
|
|
126
|
+
)
|
|
127
|
+
: (artesConfig.env || "")),
|
|
125
128
|
baseURL: process.env.BASE_URL
|
|
126
129
|
? JSON.parse(process.env.BASE_URL)
|
|
127
130
|
: artesConfig?.baseURL
|