mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4625] Add ADF linking to unit tests and e2es (#2853)
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user