We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8894ef9 commit 9a821f8Copy full SHA for 9a821f8
src/test.ts
@@ -7,21 +7,10 @@ import {
7
platformBrowserDynamicTesting
8
} from '@angular/platform-browser-dynamic/testing';
9
10
-declare const require: {
11
- context(path: string, deep?: boolean, filter?: RegExp): {
12
- keys(): string[];
13
- <T>(id: string): T;
14
- };
15
-};
16
-
17
// First, initialize the Angular testing environment.
18
getTestBed().initTestEnvironment(
19
BrowserDynamicTestingModule,
20
platformBrowserDynamicTesting(), {
21
teardown: { destroyAfterEach: false }
22
}
23
);
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