-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
59 lines (45 loc) · 1.17 KB
/
karma.conf.js
File metadata and controls
59 lines (45 loc) · 1.17 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const webpackConfig = require('./webpack.config')
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['mocha'],
files: ['src/tests/*.test.js', 'src/tests/client/**/*.test.js'],
preprocessors: {
'src/**/*.test.js': ['webpack', 'sourcemap'],
},
webpack: Object.assign(webpackConfig, {
devtool: 'inline-source-map',
}),
webpackServer: {
noInfo: true,
},
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox'],
},
},
reporters: ['progress', 'mocha'],
port: 9876,
colors: true,
/**
* level of logging
* possible values:
*
* config.LOG_DISABLE ||
* config.LOG_ERROR ||
* config.LOG_WARN ||
* config.LOG_INFO ||
* config.LOG_DEBUG
*/
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [process.env.TRAVIS ? 'Chrome_travis_ci' : 'Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity,
})
}