forked from BowlingX/flexcss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
40 lines (40 loc) · 1.1 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
module.exports = function (config) {
config.set({
basePath: '',
files: [
'src/test/**/*.js',
{
pattern: 'src/test/fixtures/**/*.html',
watched: true,
included: false,
served: true
}
],
frameworks: ['jasmine-jquery', 'jasmine'],
browsers: ['Chrome'],
preprocessors: {'./src/**/*.js': ['webpack']},
reporters: ['progress', 'coverage'],
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
plugins: [
'karma-chrome-launcher',
'karma-jasmine',
'karma-jasmine-jquery',
'karma-junit-reporter',
'karma-coverage',
require("karma-webpack")
],
webpackMiddleware: {
// webpack-dev-middleware configuration
// i. e.
noInfo: true
},
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit'
},
webpack: require('./webpack.test.config.js')
});
};