forked from kahwee/viewability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
41 lines (41 loc) · 846 Bytes
/
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
const webpack = require('./webpack.config.js')
const browsers = process.env.CI ? ['ChromeHeadless'] : ['Chrome']
module.exports = function (config) {
config.set({
basePath: '.',
frameworks: ['mocha', 'chai'],
files: [
'tests/*-spec.js',
'tests/**/*-spec.js'
],
browsers,
webpack,
preprocessors: {
'tests/*-spec.js': ['webpack'],
'tests/**/*-spec.js': ['webpack']
},
webpackMiddleware: {
noInfo: true,
stats: {
chunks: false
}
},
reporters: ['progress', 'coverage'],
coverageReporter: {
dir: 'coverage',
reporters: [
{
type: 'lcov',
subdir: 'report-lcov'
}
]
},
client: {
mocha: {
ui: 'bdd',
reporter: 'html'
}
},
singleRun: !!process.env.CI
})
}