forked from bptlab/chor-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
46 lines (34 loc) · 875 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
43
44
45
// Karma configuration
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(karma) {
karma.set({
basePath: '',
frameworks: ['mocha', 'chai', 'parcel'],
files: [
{ pattern: 'test/spec/**/*Spec.js', included: false, served: false, watched: false, nocache: false },
],
preprocessors: {
'**/*.bpmn': ['parcel'],
'**/*Spec.js': ['parcel'],
},
parcelConfig: {
detailedReport: false, // default: false,
logLevel: 2,// default: 1
minify: false,
sourceMaps: true,
cacheDir: '.karma-parcel-cache',
hmr: false,
watch: false
},
logLevel: karma.LOG_INFO,
browsers: ['ChromeHeadless'],
client: {
mocha: {
ui: 'bdd',
}
},
browserNoActivityTimeout: 30000,
singleRun: true,
autoWatch: false,
});
};