From 036208c4cfb7e3e84d3ec6fa4cc805be9d199fca Mon Sep 17 00:00:00 2001 From: Uzaeir Khan Date: Mon, 13 Nov 2023 14:16:49 +0100 Subject: [PATCH] BC-5468 update config file --- cypress.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index ba76df51..d2fd3a0b 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -3,12 +3,12 @@ const webpack = require('@cypress/webpack-preprocessor') const preprocessor = require('@badeball/cypress-cucumber-preprocessor') async function setupNodeEvents (on, config) { - let environmentFilename + let environmentFilename, environmentName const isCI = config.env.environmentName === 'ci' if (isCI) { environmentFilename = `./env_variables/combined_credentials.env.json` } else { - const environmentName = config.env.environmentName || 'local' + environmentName = config.env.environmentName || 'local' environmentFilename = `./env_variables/${environmentName}.env.json` } console.log('loading %s', environmentFilename) @@ -20,7 +20,7 @@ async function setupNodeEvents (on, config) { ...settings.env } } - console.log(settings.env) + console.log(config.env) console.log('loaded settings for environment %s', environmentName) // This is required for the preprocessor to be able to generate JSON reports after each run, and more,