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