forked from timseverien/taggd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
48 lines (47 loc) · 1018 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
46
47
48
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['browserify', 'jasmine'],
files: [
'src/**/*.js',
'tests/functions.js',
'tests/units/*.js',
'tests/behavior/*.js',
{
pattern: 'tests/assets/**/*.jpg',
watched: false,
included: false,
served: true,
nocache: false,
},
],
reporters: ['progress', 'coverage'],
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true,
preprocessors: {
'src/**/*.js': ['browserify', 'coverage'],
},
coverageReporter: {
reporters: [
// CLI output
{ type: 'text' },
// Report to submit to Coveralls
{
type: 'lcov',
dir: 'coverage',
subdir: '.',
},
],
},
browserify: {
debug: true,
transform: [
['babelify', {
presets: ['es2015', 'es2017'],
plugins: ['transform-runtime'],
}],
],
},
});
};