-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
72 lines (57 loc) · 2.12 KB
/
karma.conf.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Karma configuration
// Generated on Wed Jul 15 2015 09:44:02 GMT+0200 (Romance Daylight Time)
module.exports = function(config) {
config.set({
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'source-map-support'],
// list of files / patterns to load in the browser
files: [
'node_modules/es6-shim/es6-shim.js',
'node_modules/systemjs/dist/system-polyfills.js', // PhantomJS2 (and possibly others) might require it
// zone-microtask must be included first as it contains a Promise monkey patch
'node_modules/zone.js/dist/zone-microtask.js',
'node_modules/zone.js/dist/long-stack-trace-zone.js',
'node_modules/zone.js/dist/jasmine-patch.js',
'node_modules/systemjs/dist/system.src.js',
{pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false, served: true},
'node_modules/reflect-metadata/Reflect.js',
'tools/build/file2modulename.js',
{pattern: 'node_modules/angular2/**/*.js', included: false, watched: false},
{pattern: 'test/**', included: false, watched: true},
'test-main.js'
],
// list of files / patterns to exclude
exclude: [
'node_modules/angular2/bundles/**',
'node_modules/angular2/es6/**',
'node_modules/angular2/examples/**',
'node_modules/angular2/**/*_spec.js',
'node_modules/angular2/**/*.min.js',
'node_modules/rxjs/bundles/**',
'node_modules/rxjs/testing/**'
],
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha'],
// web server port
port: 9876,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [
'Chrome',
'PhantomJS2'
],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
}
});
if (process.env.TRAVIS) {
config.browsers = ['Chrome_travis_ci'];
config.singleRun = true;
}
};