artes 1.1.28 → 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.
Files changed (2) hide show
  1. package/cucumber.config.js +11 -6
  2. package/package.json +1 -1
@@ -116,12 +116,17 @@ module.exports = {
116
116
  // World parameters
117
117
  worldParameters: artesConfig.worldParameters || {}, // Custom world parameters
118
118
  },
119
- env: process.env.ENV
120
- ? JSON.parse(process.env.ENV)
121
- : artesConfig.env ||
122
- (typeof artesConfig.baseURL === "object" && artesConfig.baseURL !== null
123
- ? Object.keys(artesConfig.baseURL)[0]
124
- : ""),
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 || "")),
125
130
  baseURL: process.env.BASE_URL
126
131
  ? JSON.parse(process.env.BASE_URL)
127
132
  : artesConfig?.baseURL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {