forked from K15t/aui-ng2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec-bundle.js
28 lines (22 loc) · 899 Bytes
/
spec-bundle.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
Error.stackTraceLimit = Infinity;
require('phantomjs-polyfill');
require('es6-shim');
require('reflect-metadata');
require('zone.js');
require('rxjs');
require('zone.js/dist/async-test.js');
var jQuery = require('jquery/dist/jquery.js');
window.jQuery = jQuery;
window.$ = jQuery;
require('./test/lib/aui-5.9.15.js');
require('./test/lib/aui-experimental-5.9.15.js');
var testing = require('@angular/core/testing');
var browser = require('@angular/platform-browser-dynamic/testing');
testing.setBaseTestProviders(
browser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
browser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
// get all the files, for each file, call the context function
// that will require the file and load it up here. Context will
// loop and require those spec files here
var testContext = require.context('./src', true, /\.spec\.ts/);
testContext.keys().forEach(testContext);