diff --git a/src/test.ts b/src/test.ts index 7b466a52..b6623db4 100644 --- a/src/test.ts +++ b/src/test.ts @@ -6,8 +6,8 @@ import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@ang declare const require: { context(path: string, deep?: boolean, filter?: RegExp): { - keys(): string[]; (id: string): T; + keys(): string[]; }; }; @@ -21,4 +21,4 @@ getTestBed().initTestEnvironment( const context = require.context('./', true, /\.spec\.ts$/); // And load the modules. -context.keys().map(context); +context.keys().forEach(context);