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