Disable inspection tools while regression tests

pull/6044/head
Arman Ozak 5 years ago
parent 0b90e75f94
commit 580d4a9c53

@ -496,6 +496,15 @@
"with": "apps/dev-app/src/environments/environment.internal.ts"
}
]
},
"regression": {
"tsConfig": "apps/dev-app/tsconfig.dev.json",
"fileReplacements": [
{
"replace": "apps/dev-app/src/environments/environment.ts",
"with": "apps/dev-app/src/environments/environment.regression.ts"
}
]
}
}
},
@ -510,6 +519,9 @@
},
"internal": {
"browserTarget": "dev-app:build:internal"
},
"regression": {
"browserTarget": "dev-app:build:regression"
}
}
},

@ -38,7 +38,7 @@ const INSPECTION_TOOLS = [
SettingManagementConfigModule.forRoot(),
NgxsModule.forRoot(),
ThemeBasicModule.forRoot(),
...(environment.production ? [] : INSPECTION_TOOLS),
...(environment.production || environment.test ? [] : INSPECTION_TOOLS),
],
providers: [APP_ROUTE_PROVIDER],
declarations: [AppComponent],

@ -0,0 +1,43 @@
import { Config } from '@abp/ng.core';
const baseUrl = 'http://localhost:4200';
export const environment = {
test: true,
production: false,
hmr: false,
application: {
baseUrl,
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'MyProjectName_App',
responseType: 'code',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44305',
rootNamespace: 'MyCompanyName.MyProjectName',
},
AbpFeatureManagement: {
url: 'https://localhost:44305',
rootNamespace: 'Volo.Abp',
},
AbpPermissionManagement: {
url: 'https://localhost:44305',
rootNamespace: 'Volo.Abp.PermissionManagement',
},
AbpTenantManagement: {
url: 'https://localhost:44305',
rootNamespace: 'Volo.Abp.TenantManagement',
},
AbpIdentity: {
url: 'https://localhost:44305',
rootNamespace: 'Volo.Abp',
},
},
} as Config.Environment;

@ -9,6 +9,7 @@
"symlink": "symlink",
"start": "ng serve dev-app",
"start:internal": "ng serve dev-app --configuration=internal",
"start:regression": "ng serve dev-app --configuration=regression",
"build": "ng build",
"test": "ng test --watchAll --runInBand",
"commit": "git-cz",

@ -10,6 +10,7 @@ export namespace Config {
apis: Apis;
application: Application;
hmr?: boolean;
test?: boolean;
localization?: { defaultResourceName?: string };
oAuthConfig: AuthConfig;
production: boolean;

Loading…
Cancel
Save