Angular v14 -> v15 update (#1903)

This commit is contained in:
Pavlo Tkach 2023-01-11 14:46:48 -05:00 committed by GitHub
parent 15d0507914
commit ffdbd1e883
5 changed files with 4434 additions and 4057 deletions

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);