-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
44 lines (33 loc) · 744 Bytes
/
karma.conf.js
File metadata and controls
44 lines (33 loc) · 744 Bytes
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
/* eslint-env node */
module.exports = config => {
config.set({
basePath: './',
browsers: ['ChromeHeadless'],
frameworks: ['jasmine'],
reporters: ['coverage', 'progress'],
files: [
'./src/templiteral.js',
{ pattern: 'test/*.test.js', watched: false }
],
preprocessors: {
'src/**/*.js': ['rollup', 'coverage'],
'test/*.test.js': ['rollup']
},
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
coverageIstanbulReporter: {
reports: ['html', 'text-summary']
},
rollupPreprocessor: {
format: 'iife',
name: 'templit',
output: {
format: 'es',
name: 'templit'
}
},
singleRun: true
});
};