-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.config.js
37 lines (29 loc) · 940 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
29
30
31
32
33
34
35
36
37
var webpackConfig = require('./webpack.config.js');
module.exports = function(config) {
config.set({
// Add any browsers here
browsers: ['PhantomJS', 'Chrome'],
frameworks: ['jasmine'],
// The entry point for our test suite
basePath: 'src',
autoWatch: false,
files: ['webpack.tests.js'],
preprocessors: {
// Run this through webpack, and enable inline sourcemaps
'webpack.tests.js': ['webpack', 'sourcemap'],
},
webpack: webpackConfig(['test']),
client: {
// log console output in our test console
captureConsole: true
},
reporters: ['dots'],
singleRun: true, // exit after tests have completed
webpackMiddleware: {
noInfo: true
},
// Webpack takes a little while to compile -- this manifests as a really
// long load time while webpack blocks on serving the request.
browserNoActivityTimeout: 60000, // 60 seconds
});
};