-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
45 lines (43 loc) · 1.02 KB
/
Copy pathkarma.conf.js
File metadata and controls
45 lines (43 loc) · 1.02 KB
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
'use strict'
const webpackConfig = require('./webpack.config.test.js')
module.exports = function (karma) {
karma.set({
basePath: '',
files: [
'node_modules/babel-polyfill/browser.js',
'public/javascripts/socket.io-client/dist/socket.io.js',
'test/index.js'
],
frameworks: [ 'mocha', 'sinon', 'chai' ],
browsers: [ 'PhantomJS' ], // 'Chrome', 'Safari', 'Firefox', 'Opera'
preprocessors: {
'test/index.js': [ 'webpack', 'sourcemap' ]
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
reporters: [ 'coverage', 'spec', 'junit' ],
coverageReporter: {
reporters: [
{
type: 'lcov',
dir: 'coverage'
},
{
type: 'text'
}
]
},
junitReporter: {
outputDir: 'tmp/karma-results'
},
port: 9876,
logLevel: karma.LOG_INFO,
singleRun: true,
autoWatch: false,
browserNoActivityTimeout: 30000,
colors: true,
loggers: [ { type: 'console' } ]
})
}