Angular v14 -> v15 update (#1903)

This commit is contained in:
Pavlo Tkach
2023-01-11 14:46:48 -05:00
committed by GitHub
parent 99a31423e0
commit 8d180f535f
5 changed files with 4434 additions and 4057 deletions
-12
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().forEach(context);