Skip to content

Commit 9a821f8

Browse files
committed
@angular/cli migration - update-karma-main-file
Remove no longer needed require calls in Karma builder main file.
1 parent 8894ef9 commit 9a821f8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/test.ts

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

10-
declare const require: {
11-
context(path: string, deep?: boolean, filter?: RegExp): {
12-
keys(): string[];
13-
<T>(id: string): T;
14-
};
15-
};
16-
1710
// First, initialize the Angular testing environment.
1811
getTestBed().initTestEnvironment(
1912
BrowserDynamicTestingModule,
2013
platformBrowserDynamicTesting(), {
2114
teardown: { destroyAfterEach: false }
2215
}
2316
);
24-
// Then we find all the tests.
25-
const context = require.context('./', true, /\.spec\.ts$/);
26-
// And load the modules.
27-
context.keys().map(context);

0 commit comments

Comments
 (0)