forked from r-park/todo-angular-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.entry.js
46 lines (34 loc) · 1.07 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require('core-js/es6/array');
require('core-js/es6/map');
require('core-js/es6/set');
require('core-js/es6/string');
require('core-js/es6/symbol');
require('core-js/fn/object/assign');
require('core-js/es7/reflect');
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');
require('firebase/firebase-browser');
Error.stackTraceLimit = Infinity;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 2000;
var browser = require('@angular/platform-browser-dynamic/testing');
var testing = require('@angular/core/testing');
testing.TestBed.initTestEnvironment(
browser.BrowserDynamicTestingModule,
browser.platformBrowserDynamicTesting()
);
// Load source files
var context = require.context('./src', true, /\.ts/);
var exclude = [
'./main.ts',
'./polyfills.ts',
'./vendor.ts'
];
context.keys().forEach(function(key) {
if (exclude.indexOf(key) === -1) context(key);
});