1 | import './polyfills.ts';
|
2 |
|
3 | import 'zone.js/dist/long-stack-trace-zone';
|
4 | import 'zone.js/dist/proxy.js';
|
5 | import 'zone.js/dist/sync-test';
|
6 | import 'zone.js/dist/jasmine-patch';
|
7 | import 'zone.js/dist/async-test';
|
8 | import 'zone.js/dist/fake-async-test';
|
9 |
|
10 |
|
11 | declare var __karma__: any;
|
12 | declare var require: any;
|
13 |
|
14 |
|
15 | __karma__.loaded = function () {};
|
16 |
|
17 |
|
18 | Promise.all([
|
19 | System.import('@angular/core/testing'),
|
20 | System.import('@angular/platform-browser-dynamic/testing')
|
21 | ])
|
22 |
|
23 | .then(([testing, testingBrowser]) => {
|
24 | testing.getTestBed().initTestEnvironment(
|
25 | testingBrowser.BrowserDynamicTestingModule,
|
26 | testingBrowser.platformBrowserDynamicTesting()
|
27 | );
|
28 | })
|
29 |
|
30 | .then(() => require.context('./', true, /\.spec\.ts/))
|
31 |
|
32 | .then(context => context.keys().map(context))
|
33 |
|
34 | .then(__karma__.start, __karma__.error);
|