2017-04-08 00:24:44 +02:00
|
|
|
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
|
|
|
2018-08-31 21:25:24 +02:00
|
|
|
import 'zone.js/dist/zone-testing';
|
|
|
|
import { getTestBed } from '@angular/core/testing';
|
|
|
|
import {
|
|
|
|
BrowserDynamicTestingModule,
|
|
|
|
platformBrowserDynamicTesting
|
|
|
|
} from '@angular/platform-browser-dynamic/testing';
|
2017-04-08 00:24:44 +02:00
|
|
|
|
2017-04-15 18:13:58 +02:00
|
|
|
declare const require: any;
|
2017-04-08 00:24:44 +02:00
|
|
|
|
|
|
|
// 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);
|