Skip to content

Commit

Permalink
BC-5468 update config file
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Nov 13, 2023
1 parent 133f768 commit 036208c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 036208c

Please sign in to comment.