From c41e48df7fe3af9651e49654678a2a159ccc8eb3 Mon Sep 17 00:00:00 2001 From: Sercan Yemen <117369+srcn@users.noreply.github.com> Date: Thu, 12 May 2022 23:40:40 +0300 Subject: [PATCH] Angular 14 related changes --- src/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);