-
Notifications
You must be signed in to change notification settings - Fork 1
/
.karma.conf.js
49 lines (34 loc) · 1.08 KB
/
.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
43
44
45
46
47
48
49
// Adapted from https://github.com/karma-runner/karma/blob/master/test/client/karma.conf.js
// which contains useful settings from browserstack and travis for example
module.exports = function(config) {
config.set({
// for more information on the properties used below, see the corresponding sections at
// https://karma-runner.github.io/latest/config/configuration-file.html
basePath: '',
frameworks: ['mocha'],
files: [
'./tests_browserified/*.js',
],
exclude: [
],
preprocessors: {
// https://karma-runner.github.io/latest/config/preprocessors.html
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: [
// http://karma-runner.github.io/latest/config/browsers.html
'ChromeHeadless', 'FirefoxHeadless',
],
singleRun: true,
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-mocha',
],
concurrency: 1, // just to prevent simultaneous logging for multiple browsers when testing
});
};