-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkarma.conf.js
More file actions
42 lines (41 loc) · 966 Bytes
/
karma.conf.js
File metadata and controls
42 lines (41 loc) · 966 Bytes
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 = function (config) {
config.set({
basePath: '',
frameworks: ['mocha'],
files: ['./test/*'],
plugins: [
"karma-chrome-launcher",
"karma-phantomjs-launcher",
"karma-firefox-launcher",
"karma-ie-launcher",
//"karma-edge-launcher",
'karma-mocha',
'karma-webpack',
'karma-babel-preprocessor',
],
preprocessors: {
'./test/*.js': ['webpack']
},
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
port: 9876,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
autoWatch: true,
client: {
// only available when autoWatch is on
captureConsole: true,
},
browsers: [
'Chrome',
//'Firefox',
//'IE',
//'PhantomJS',
//'Edge',
],
singleRun: false,
concurrency: Infinity
})
}