forked from kozlice/angular2-webpack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.entry.ts
31 lines (26 loc) · 931 Bytes
/
karma.entry.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* TODO: Comments
*
* Order matters here for zone.js modules
*/
import 'core-js/es6';
import 'core-js/es7/reflect';
import 'reflect-metadata';
import 'zone.js/dist/zone';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import 'ts-helpers';
import { TestBed } from '@angular/core/testing';
import * as browser from '@angular/platform-browser-dynamic/testing';
TestBed.initTestEnvironment(
browser.BrowserDynamicTestingModule,
browser.platformBrowserDynamicTesting()
);
let testContext = (<{ context?: Function }>require).context('./tests', true, /\.spec\.ts/);
testContext.keys().forEach(testContext);
let coverageContext = (<{ context?: Function }>require).context('./src/app', true, /\.ts/);
coverageContext.keys().forEach(coverageContext);