udpate angular core and cli to 15

This commit is contained in:
2022-12-04 09:34:29 +01:00
parent 39499308c6
commit 037c85bb3f
6 changed files with 2168 additions and 3401 deletions

View File

@@ -16,7 +16,7 @@ const routes: Routes = [
@NgModule({
imports: [
RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })
RouterModule.forRoot(routes, {})
],
//declarations: [VisualizationPageComponent],
declarations: [],

View File

@@ -7,20 +7,8 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
<T>(id: string): T;
keys(): string[];
};
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);