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.
Files changed (2) hide show
  1. package/cucumber.config.js +11 -9
  2. package/package.json +1 -1
@@ -116,15 +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
- : (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 || "")),
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.1.29",
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": {