-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.entry.js
28 lines (28 loc) · 1011 Bytes
/
karma.entry.js
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
require('es6-shim');
require('reflect-metadata');
require('zone.js/dist/zone');
require('zone.js/dist/long-stack-trace-zone');
require('zone.js/dist/proxy');
require('zone.js/dist/sync-test');
require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test');
require('ts-helpers');
// Prevent Karma from running prematurely.
__karma__.loaded = function () { return; };
Promise.all([
require('@angular/core/testing'),
require('@angular/platform-browser-dynamic/testing')
])
.then(function (a) {
var testing = a[0];
var testingBrowser = a[1];
testing
.getTestBed()
.initTestEnvironment(
testingBrowser.BrowserDynamicTestingModule,
testingBrowser.platformBrowserDynamicTesting());
})
.then(function () { return require.context('./tests/', true, /\.ts/); })
.then(function (context) { return context.keys().map(context); })
.then(__karma__.start, __karma__.error);