-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
38 lines (31 loc) · 928 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
var webpackConfig = require('./webpack.test');
// Reference: http://karma-runner.github.io/0.12/config/configuration-file.html
module.exports = function karmaConfig (config) {
config.set({
frameworks: [
// Reference: https://github.com/karma-runner/karma-jasmine
// Set framework to jasmine
'jasmine'
],
files: [
// Grab all files in the app folder that contain .test.
'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: [
'Chrome'
],
singleRun: true,
// Configure code coverage reporter
coverageReporter: {
dir: 'build/coverage/',
type: 'html'
},
webpack: webpackConfig
});
};