From cb8f820d73525f637b648a0f8c33157f70bbd535 Mon Sep 17 00:00:00 2001 From: Alex Shnitman Date: Mon, 1 Feb 2021 22:53:31 +0200 Subject: upgrade dependencies (migrate to Angular 10) --- ui/src/test.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ui/src/test.ts (limited to 'ui/src/test.ts') diff --git a/ui/src/test.ts b/ui/src/test.ts new file mode 100644 index 0000000..50193eb --- /dev/null +++ b/ui/src/test.ts @@ -0,0 +1,25 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { + BrowserDynamicTestingModule, + platformBrowserDynamicTesting +} from '@angular/platform-browser-dynamic/testing'; + +declare const require: { + context(path: string, deep?: boolean, filter?: RegExp): { + keys(): string[]; + (id: string): T; + }; +}; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment( + BrowserDynamicTestingModule, + platformBrowserDynamicTesting() +); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); -- cgit