-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.config.js
28 lines (27 loc) · 839 Bytes
/
karma.config.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
const webpack = require('./webpack.config.test');
module.exports = function (config) {
config.set({
browsers: [ 'Chrome' ], //For jenkins build
singleRun: true, //just run once by default
frameworks: [ 'jasmine' ], //use the Jasmine test framework
files: [
'./node_modules/jquery/dist/jquery.js',
'./testContext.js'
],
preprocessors: {
'./testContext.js': [ 'webpack', 'sourcemap'] //preprocess with webpack and our sourcemap loader
},
reporters: [ 'progress', 'html', 'coverage' ], //report results in this format
coverageReporter: {
dir: 'coverage/',
reporters: [
{type: 'html'}
]
},
webpack,
webpackServer: {
noInfo: true //please don't spam the console when running in karma!
},
browserNoActivityTimeout: 1000000000
});
};