blob: e11ff1c97b82c411cff67eb2623e12fbf7004b8a [file] [log] [blame]
Sean Condon87b78502018-09-17 20:53:24 +01001// This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
3import 'core-js/es7/reflect';
4import 'zone.js/dist/zone';
5import 'zone.js/dist/zone-testing';
6import { getTestBed } from '@angular/core/testing';
7import {
8 BrowserDynamicTestingModule,
9 platformBrowserDynamicTesting
10} from '@angular/platform-browser-dynamic/testing';
11
12declare const require: any;
13
14// First, initialize the Angular testing environment.
15getTestBed().initTestEnvironment(
16 BrowserDynamicTestingModule,
17 platformBrowserDynamicTesting()
18);
19// Then we find all the tests.
20const context = require.context('./', true, /\.spec\.ts$/);
21// And load the modules.
22context.keys().map(context);