forked from krispo/ng2-nvd3
-
Notifications
You must be signed in to change notification settings - Fork 3
/
karma.conf.js
52 lines (51 loc) · 1.04 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
module.exports = function (config) {
config.set({
basePath: '.',
files: [
'test/vendor.ts',
'test/*.spec.ts'
],
preprocessors: {
'test/vendor.ts': ['webpack', 'sourcemap'],
'test/*.spec.ts': ['webpack', 'sourcemap']
},
webpack: {
devtool: 'source-map',
module: {
loaders: [
{
test: /\.ts/,
loaders: ['ts-loader'],
exclude: /node_modules/
}
]
},
resolve: {
extensions: ["", ".js", ".ts"]
}
},
webpackServer: {
noInfo: true
},
frameworks: ['jasmine'],
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
reporters: ['progress', 'coverage'],
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
exclude: [],
port: 9876
});
if (process.env.TRAVIS) {
config.browsers = ['chrome_travis_ci'];
config.singleRun = true;
}
};