itemengine-cypress-automation 1.0.264-updatedSmokeTestCommand-d725550.0 → 1.0.265-fix-dev-env-9f5f2fb.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.264-updatedSmokeTestCommand-d725550.0",
3
+ "version": "1.0.265-fix-dev-env-9f5f2fb.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -47,7 +47,11 @@ function setCommandLineEnvArgs() {
47
47
  let fileConfig;
48
48
  //let consoleErrors = envArgs.consoleErrors ? `consoleErrors=${envArgs.consoleErrors}` : '';
49
49
 
50
- if (env === 'dev') {
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
- fileConfig = `fileConfig=${env}`
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) {