-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
38 lines (38 loc) · 969 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
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
basePath: '',
browserDisconnectTimeout: 5000,
frameworks: ['mocha', 'chai'],
plugins: [
'karma-*'
],
client: {
mocha: {
timeout: 5000,
}
},
files: [
'dist/browser/piano-analytics.js',
'test/utils.js',
'test/shared/*.js',
'test/browser/*.js'
],
exclude: [
'*_bak_*'
],
colors: true,
logLevel: config.LOG_ERROR,
autoWatch: true,
browsers: ['headlessChrome'],
captureTimeout: 60000,
processKillTimeout: 4000,
singleRun: true,
customLaunchers: {
headlessChrome: {
base: 'ChromeHeadless',
flags: ['--lang=en_US']
}
}
});
};