-
Notifications
You must be signed in to change notification settings - Fork 3
/
karma.conf.js
33 lines (31 loc) · 907 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
// Karma configuration
const webpackConfig = require('./webpack.config');
delete webpackConfig.entry;
module.exports = (config) => {
config.set({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
reporters: ['spec', 'coverage', 'junit'],
files: [
'node_modules/jquery/dist/jquery.js',
'src/angular-indeterminate.spec.js',
],
preprocessors: {
'src/*': ['webpack'],
},
coverageReporter: {
dir: './coverage',
reporters: [
{ type: 'html', subdir: '.' },
{ type: 'cobertura', subdir: '.' },
],
},
junitReporter: {
outputDir: './coverage',
outputFile: 'junit.xml',
useBrowserName: false,
},
webpack: webpackConfig,
webpackMiddleware: { noInfo: true },
});
};