Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 9a9ac06

Browse files
devoto13clydin
authored andcommitted
refactor(@schematics/angular): remove obsolete logic for Karma start delay
1 parent 2069526 commit 9a9ac06

File tree

1 file changed

+0
-7
lines changed
  • packages/schematics/angular/application/files/__sourcedir__

1 file changed

+0
-7
lines changed

packages/schematics/angular/application/files/__sourcedir__/test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
11-
declare const __karma__: any;
1210
declare const require: any;
1311

14-
// Prevent Karma from running prematurely.
15-
__karma__.loaded = function () {};
16-
1712
// First, initialize the Angular testing environment.
1813
getTestBed().initTestEnvironment(
1914
BrowserDynamicTestingModule,
@@ -23,5 +18,3 @@ getTestBed().initTestEnvironment(
2318
const context = require.context('./', true, /\.spec\.ts$/);
2419
// And load the modules.
2520
context.keys().map(context);
26-
// Finally, start Karma to run the tests.
27-
__karma__.start();

0 commit comments

Comments
 (0)