forked from beer-garden/angular-schema-form-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
55 lines (44 loc) · 1.27 KB
/
karma.conf.js
File metadata and controls
55 lines (44 loc) · 1.27 KB
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
var webpack = require("webpack");
module.exports = function(config) {
config.set({
frameworks: [
// Reference: https://github.com/karma-runner/karma-mocha
// Set framework to mocha
'mocha'
],
reporters: [
// Reference: https://githbu.com/mlex/karma-spec-reporter
// Set reporter to print detailed results to console
'progress',
// Reference: https://github.com/karma-runner/karma-coverage
// Output code coverage files
'coverage'
//'spec'
],
files: [
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
'./node_modules/tv4/tv4.js',
'src/tests.webpack.js'
],
preprocessors: {
// Reference: http://webpack/github.io/docs/testing.html
// Reference: https://github.com/webpack/karma-webpack
// Convert files with webpack and load sourcemaps
'src/tests.webpack.js': ['webpack', 'sourcemap']
},
browsers: ['PhantomJS'],
coverageReporter: {
dir: 'build/coverage/',
reporters: [
{ type: 'html'},
{ type: 'text'},
{ type: 'text-summary'}
]
},
webpack: require('./webpack.config.test'),
// Hide webpack build information from output
webpackMiddleWare: {
noInfo: 'errors-only'
}
});
};