forked from RedHat-Israel/rosvr-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
44 lines (35 loc) · 1.1 KB
/
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
39
40
41
42
43
44
// Karma configuration
// Generated on Tue Jul 25 2017 11:56:57 GMT+0300 (IDT)
var webpackConfig = require('./webpack.config.js')
var jasmineConfig = require('./jasmine.json')
module.exports = function(config) {
config.set({
// Add any browsers here
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
files: ['**/*.test.js'],
// The entry point for our test suite
basePath: 'src',
autoWatch: false,
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'**/*.test.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
client: {
// log console output in our test console
captureConsole: true,
jasmine: jasmineConfig
},
reporters: ['dots'],
singleRun: true, // exit after tests have completed
webpackMiddleware: {
noInfo: true
},
failOnEmptyTestSuite: false,
// 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
})
}