-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
40 lines (35 loc) · 1012 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
module.exports = function(config) {
config.set({
reporters: ['progress', 'html', 'live-html'],
preprocessors: {
'src/**/*.js': ['babel'],
'spec/**/!(6-this).js': ['babel', 'sourcemap'],
},
babelPreprocessor: {
options: {
"presets": ["env"],
"plugins": [
"transform-es2015-modules-umd",
"transform-object-rest-spread"
],
sourceMap: 'inline'
}
},
basePath: '',
frameworks: ['jasmine'],
files: [
'node_modules/jasmine2-custom-message/jasmine2-custom-message.js',
'src/**/*.js',
'spec/**/*.js'
],
autoWatch: true,
singleRun: false,
// the default configuration
htmlLiveReporter: {
colorScheme: 'jasmine', // light 'jasmine' or dark 'earthborn' scheme
defaultTab: 'summary', // 'summary' or 'failures': a tab to start with
// only show one suite and fail log at a time, with keyboard navigation
focusMode: true,
},
});
};