unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 24 lines 744 B view raw
1// This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 3import 'zone.js/testing' 4import { getTestBed } from '@angular/core/testing' 5import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing' 6 7declare const require: { 8 context( 9 path: string, 10 deep?: boolean, 11 filter?: RegExp 12 ): { 13 <T>(id: string): T 14 keys(): string[] 15 } 16} 17 18// First, initialize the Angular testing environment. 19getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()) 20 21// Then we find all the tests. 22const context = require.context('./', true, /\.spec\.ts$/) 23// And load the modules. 24context.keys().forEach(context)