-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathkarma.common.js
42 lines (42 loc) · 908 Bytes
/
karma.common.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
module.exports = {
frameworks: ['jasmine'],
reporters: ['progress', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'text-summary' },
{ type: 'lcov'}
]
},
colors: true,
autoWatch: false,
browsers: ['PhantomJS'],
browserNoActivityTimeout: 120000,
captureTimeout: 120000, // the build process tends to take a while
singleRun: true,
files: [
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
'./node_modules/babel-core/browser-polyfill.js',
'./test/test.js'
],
preprocessors: {
'./test/test.js': ['webpack', 'sourcemap']
},
webpack: {
devtool: 'inline-source-map',
module: {
preLoaders: [
{
test: /\.es6\.js$/,
exclude: /(test|node_modules|bower_components)\//,
loader: 'isparta-instrumenter'
}
],
loaders: [
{ test: /\.es6\.js$/, loader: 'babel?compact=true' }
]
}
},
webpackServer: {
noInfo: true
}
};