-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
62 lines (61 loc) · 1.71 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
55
56
57
58
59
60
61
62
const path = require('path');
const webpack = require('webpack');
module.exports = (config) => {
config.set({
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: ['PhantomJS'],
files: [
{
pattern: 'tests.webpack.js',
watched: false
},
'node_modules/babel-polyfill/dist/polyfill.js'
],
frameworks: [
'jasmine',
],
preprocessors: {
'tests.webpack.js': ['webpack'],
},
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,
captureTimeout: 60000,
singleRun: false,
autoWatch: true,
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'progress', 'html', 'coverage', 'junit'],
htmlReporter: {
outputFile: 'report/jasmine.html',
// Optional
pageTitle: 'Birler.js Jasmine Output',
subPageTitle: '',
groupSuites: true,
useCompactStyle: false,
useLegacyStyle: false
},
webpack: {
cache: false,
plugins: webpack.plugins,
module: {
loaders: [
{
test: [/\.js?$/],
exclude: path.resolve(__dirname, 'node_modules'),
loader: 'babel',
query: {
presets: ['es2015'],
},
}
]
}
},
});
};