forked from discordier/sam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
54 lines (54 loc) · 1.38 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
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'browserify'],
// You may use 'ChromeCanary', 'Chromium' or any other supported browser
browsers: ['ChromeHeadless', 'Chrome_without_security'],
browserDisconnectTimeout: 1000,
// Need to bump these really high as it times out somehow.
browserDisconnectTolerance: 2,
browserNoActivityTimeout: 300000,
// you can define custom flags
customLaunchers: {
Chrome_without_security: {
base: 'ChromeHeadless',
flags: ['--disable-web-security']
}
},
files: [
'test/minimum-tests.spec.js',
{pattern: 'src/**/*.es6', type: 'js'},
// fixtures
{pattern: 'test/**/*.json', type: 'js'},
{pattern: 'test/**/*-testcase.js', include: false, serve: false, watch: true}
],
exclude: [
],
client: {
mocha: {
require: [
],
}
},
reporters: ['progress', 'mocha'],
mochaReporter: {
output: 'minimal',
showDiff: true
},
preprocessors: {
'src/**/*.es6': ['browserify', 'sourcemap'],
'test/**/*.spec.js': ['browserify', 'sourcemap'],
'test/**/*-testcase.js': ['browserify', 'sourcemap']
},
babelPreprocessor: {
options: {
sourceMap: 'inline'
}
},
browserify: {
debug: true,
transform: [
'babelify'
]
}
});
};