Upgrade to Angular 15
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
||||
|
||||
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
|
||||
declare const __karma__: any;
|
||||
declare const require: any;
|
||||
|
||||
// Prevent Karma from running prematurely.
|
||||
__karma__.loaded = function () {};
|
||||
@@ -32,9 +31,5 @@ getTestBed().initTestEnvironment(
|
||||
teardown: { destroyAfterEach: false }
|
||||
},
|
||||
);
|
||||
// Then we find all the tests.
|
||||
const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
// Finally, start Karma to run the tests.
|
||||
__karma__.start();
|
||||
|
||||
Reference in New Issue
Block a user