-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
24 lines (22 loc) · 835 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
/// <reference path="typings/node/node.d.ts"/>
var path = require("path");
var WebpackConfig = require('webpack-config');
// Karma configuration here
module.exports = function (config) {
config.set({
logLevel: config.LOG_DEBUG,
port: 3334,
browsers: ['PhantomJS'],
singleRun: false, //just run once by default
frameworks: ['jasmine'], //use jasmine as framework
files: [
path.join(__dirname, 'node_modules', 'phantomjs-polyfill', 'bind-polyfill.js'), // To enable PhantomJS to render React components
'karma.tests.js' //test files
],
preprocessors: {
'karma.tests.js': ['webpack', 'sourcemap'] //preprocess with webpack and sourcemap loader
},
reporters: ['progress'], //report results in this format
webpack: new WebpackConfig().extend("webpack.test.config")
});
};