github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/webapp/src/test.ts (about) 1 // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 3 import 'zone.js/dist/long-stack-trace-zone'; 4 import 'zone.js/dist/proxy.js'; 5 import 'zone.js/dist/sync-test'; 6 import 'zone.js/dist/jasmine-patch'; 7 import 'zone.js/dist/async-test'; 8 import 'zone.js/dist/fake-async-test'; 9 import { getTestBed } from '@angular/core/testing'; 10 import { 11 BrowserDynamicTestingModule, 12 platformBrowserDynamicTesting 13 } from '@angular/platform-browser-dynamic/testing'; 14 15 // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 declare const __karma__: any; 17 18 // Prevent Karma from running prematurely. 19 __karma__.loaded = function () {}; 20 21 // First, initialize the Angular testing environment. 22 getTestBed().initTestEnvironment( 23 BrowserDynamicTestingModule, 24 platformBrowserDynamicTesting() 25 ); 26 // Finally, start Karma to run the tests. 27 __karma__.start();