itemengine-cypress-automation 1.0.263 → 1.0.264-fix-dev-env-e88b3e0.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -47,7 +47,11 @@ function setCommandLineEnvArgs() {
|
|
47
47
|
let fileConfig;
|
48
48
|
//let consoleErrors = envArgs.consoleErrors ? `consoleErrors=${envArgs.consoleErrors}` : '';
|
49
49
|
|
50
|
-
|
50
|
+
console.log('ENV is:', env);
|
51
|
+
console.log('Trimmed ENV is:', env?.trim());
|
52
|
+
|
53
|
+
if (env?.trim() === 'dev') {
|
54
|
+
console.log('IF Block - Running in dev environment');
|
51
55
|
fileConfig = 'fileConfig=ildev'
|
52
56
|
} else if (env === 'staging') {
|
53
57
|
fileConfig = 'fileConfig=ilstage'
|
@@ -56,7 +60,8 @@ function setCommandLineEnvArgs() {
|
|
56
60
|
} else if (env === 'prod') {
|
57
61
|
fileConfig = 'fileConfig=ilprod'
|
58
62
|
} else {
|
59
|
-
|
63
|
+
console.log(`ELSE Block - Running in ${env} environment`, typeof env);
|
64
|
+
fileConfig = `fileConfig=il${env}`
|
60
65
|
}
|
61
66
|
|
62
67
|
if (envArgs.grepUntagged) {
|