-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
42 lines (40 loc) · 977 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
42
// Karma configuration
// Generated on Mon Apr 23 2018 21:07:12 GMT+0100 (BST)
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['browserify', 'mocha', 'sinon-chai'],
files: [
// 'src/app.js',
'tests/*Spec.js'
],
preprocessors: {
// 'src/app.js': ['browserify'],
'tests/*Spec.js': ['browserify']
},
browserify: {
'paths': ['src/'],
'transform': [[
'browserify-istanbul',
{instrumenterConfig: {embedSource: true}}
]]
},
coverageReporter: {
reporters: [
{ type: "text" },
{ type: "html", dir: "coverage" },
{ type: "lcov", dir: "coverage", subdir: ".", file: "lcov.info"}
]
},
exclude: [
],
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['ChromeHeadless'],
singleRun: true,
concurrency: Infinity
})
}