-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkarma.conf.js
57 lines (53 loc) · 1.5 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
50
51
52
53
54
55
56
57
/* eslint require-jsdoc: 0 */
module.exports = function(config) {
const configuration = {
basePath: '',
frameworks: ['mocha', 'chai-spies', 'chai'],
files: [
'node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js',
'node_modules/simulant/dist/simulant.umd.js',
'dist/macro-carousel-test.js',
'test/helpers/testing-helper.js',
'test/*.js',
],
preprocessors: {},
reporters: ['progress', 'coverage', 'coveralls'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: true,
browsers: ['ChromeHeadless', 'FirefoxHeadless', 'Safari'],
concurrency: Infinity,
// to avoid DISCONNECTED messages
browserDisconnectTimeout: 10 * 1000, // default 2000
browserDisconnectTolerance: 1, // default 0
browserNoActivityTimeout: 4 * 60 * 1000, // default 10000
captureTimeout: 4 * 60 * 1000, // default 60000,
processKillTimeout: 10 * 1000, // default 2000
client: {
mocha: {
timeout: 8000, // 6 seconds - upped from 2 seconds
},
},
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [
'-headless',
],
},
},
// Code coverage options
preprocessors: {
'dist/macro-carousel-test.js': [
'coverage',
],
},
coverageReporter: {
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
dir: 'coverage/',
},
};
config.set(configuration);
};