forked from zenedge/react-dygraphs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma-ci.conf.js
45 lines (44 loc) · 966 Bytes
/
karma-ci.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
/* eslint-env node */
/* eslint import/no-nodejs-modules: 0 import/no-commonjs: 0 */
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon-chai'],
files: [
'test/index.js',
{ pattern: 'test/specs/**' },
],
exclude: [],
preprocessors: {
'test/**': ['webpack', 'sourcemap'],
},
webpack: {
target: 'web',
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
],
},
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/',
},
webpackMiddleware: {
noInfo: true,
},
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
singleRun: true,
concurrency: Infinity,
})
}