-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
36 lines (35 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
34
35
36
/**
* Karma configuration to run the specified unit tests within the test folder.
* All files with the name <<filename>>.spec.js will be run by this test runner.
*/
var webpackConfig = require('./webpack.test.config.js');
module.exports = function (config) {
config.set({
basePath: '',
// Start these browsers, currently available:
// - Chrome
// - Firefox
// - PhantomJS
browsers: ['PhantomJS'],
browserNoActivityTimeout: 100000,
frameworks: [
'jasmine'
],
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_DISABLE,
autoWatch: false,
singleRun: true,
port: 9876,
files: [
{pattern: './test/test.spec.require.js', watched: false}
],
preprocessors: {
'./test/test.spec.require.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackServer: {
noInfo: true
}
});
};