[ACA-4625] Add ADF linking to unit tests and e2es (#2853)

This commit is contained in:
MichalKinas
2022-12-20 10:40:33 +01:00
committed by GitHub
parent bd77253200
commit cb84a06e25
12 changed files with 110 additions and 11 deletions

View File

@@ -22,6 +22,8 @@ const SAVE_SCREENSHOT = process.env.SAVE_SCREENSHOT === 'true';
const APP_CONFIG_ECM_HOST = process.env.APP_CONFIG_ECM_HOST || 'http://localhost:8080';
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
const E2E_LOG_LEVEL = process.env.E2E_LOG_LEVEL || 'ERROR';
const E2E_TS_CONFIG_FOR_ADF = 'tsconfig.e2e.adf.json';
const LOCAL_ADF_OPTION = '--with-local-adf';
const appConfig = {
@@ -170,7 +172,8 @@ exports.config = {
smartRunnerFactory.getInstance().onPrepare();
}
const tsConfigPath = path.resolve(e2eFolder, 'tsconfig.e2e.json');
const withLocalAdf = process.argv.indexOf(LOCAL_ADF_OPTION) !== -1;
const tsConfigPath = path.resolve(e2eFolder, withLocalAdf ? E2E_TS_CONFIG_FOR_ADF : 'tsconfig.e2e.json');
const tsConfig = require(tsConfigPath);
require('ts-node').register({