-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathkarma.conf.js
45 lines (45 loc) · 1.11 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
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
files: [
'src/tests/karma-test-entry.js',
{ pattern: 'src/**/*.js', included: false, served: false },
'src/**/*.html'
],
excluded: [
'**/*-test.js'
],
preprocessors: {
'src/tests/karma-test-entry.js': ['webpack', 'sourcemap']
},
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
}
},
webpackServer: {
//quiet: true,
stats: {
colors: true
}
},
client: {
mocha: {
reporter: 'html' // change Karma's debug.html to the mocha web reporter
}
},
logLevel: config.LOG_INFO,
// For IE testing in VMs see https://github.com/xdissent/karma-ievms or just connect to host port 9876 from the VM
// iectrl open -s 10,11 http://<hostip>:9876/
browsers : ['Chrome', 'Firefox'/*, 'IE10 - Win7', 'IE11 - Win7'*/],
singleRun: true
})
}